From 86acc26cbcadfd572d6af93ba34467a3cdac8b4e Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 24 Jul 2021 16:47:26 -0600 Subject: Constify many functions Constify most functions that can be constified. The exceptions are mostly accessors for structs that have no const constructor. --- src/mqueue.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mqueue.rs') 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 } } -- cgit v1.2.3