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/mount/bsd.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mount') diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs index 01449081..f0a9443a 100644 --- a/src/mount/bsd.rs +++ b/src/mount/bsd.rs @@ -111,7 +111,7 @@ impl NmountError { } /// Returns the inner [`Error`] - pub fn error(&self) -> Error { + pub const fn error(&self) -> Error { self.errno } -- cgit v1.2.3