summaryrefslogtreecommitdiff
path: root/src/mqueue.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-07-24 16:47:26 -0600
committerAlan Somers <asomers@gmail.com>2021-07-24 18:25:44 -0600
commit86acc26cbcadfd572d6af93ba34467a3cdac8b4e (patch)
treee4d378d4a648259bf782262fd90c7a5709d67b77 /src/mqueue.rs
parente88a6cf2ec0b6bd042641f58618d6e72e2c624c4 (diff)
downloadnix-86acc26cbcadfd572d6af93ba34467a3cdac8b4e.zip
Constify many functions
Constify most functions that can be constified. The exceptions are mostly accessors for structs that have no const constructor.
Diffstat (limited to 'src/mqueue.rs')
-rw-r--r--src/mqueue.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mqueue.rs b/src/mqueue.rs
index 3e494801..8598eaf2 100644
--- a/src/mqueue.rs
+++ b/src/mqueue.rs
@@ -59,7 +59,7 @@ impl MqAttr {
}
}
- pub fn flags(&self) -> mq_attr_member_t {
+ pub const fn flags(&self) -> mq_attr_member_t {
self.mq_attr.mq_flags
}
}