diff options
author | Alan Somers <asomers@gmail.com> | 2021-09-19 08:29:31 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 08:29:31 -0600 |
commit | 515e99bcffcf324d03128649f3ee0ca14d67b5b1 (patch) | |
tree | 654a84d639d1feca971396f958f7589fc1fb81bf /src/mount | |
parent | f0d6d0406d8e763619aecac062d1d2b56ca6e7b2 (diff) | |
parent | a09b1c8ac643d448db479a108ac6726307075453 (diff) | |
download | nix-515e99bcffcf324d03128649f3ee0ca14d67b5b1.zip |
Merge pull request #1529 from asomers/clippy-9-2021
Clippy cleanup
Diffstat (limited to 'src/mount')
-rw-r--r-- | src/mount/bsd.rs | 2 | ||||
-rw-r--r-- | src/mount/linux.rs | 1 | ||||
-rw-r--r-- | src/mount/mod.rs | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs index 9913fc20..23331a0a 100644 --- a/src/mount/bsd.rs +++ b/src/mount/bsd.rs @@ -383,7 +383,7 @@ impl<'a> Nmount<'a> { Some(CStr::from_bytes_with_nul(sl).unwrap()) } }; - Err(NmountError::new(error.into(), errmsg)) + Err(NmountError::new(error, errmsg)) } } } diff --git a/src/mount/linux.rs b/src/mount/linux.rs index edb8afbd..4cb2fa54 100644 --- a/src/mount/linux.rs +++ b/src/mount/linux.rs @@ -1,3 +1,4 @@ +#![allow(missing_docs)] use libc::{self, c_ulong, c_int}; use crate::{Result, NixPath}; use crate::errno::Errno; diff --git a/src/mount/mod.rs b/src/mount/mod.rs index 00303b6a..14bf2a96 100644 --- a/src/mount/mod.rs +++ b/src/mount/mod.rs @@ -1,10 +1,8 @@ //! Mount file systems #[cfg(any(target_os = "android", target_os = "linux"))] -#[allow(missing_docs)] mod linux; #[cfg(any(target_os = "android", target_os = "linux"))] -#[allow(missing_docs)] pub use self::linux::*; #[cfg(any(target_os = "dragonfly", |