summaryrefslogtreecommitdiff
path: root/src/mount
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/mount
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/mount')
-rw-r--r--src/mount/bsd.rs2
1 files changed, 1 insertions, 1 deletions
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
}