From 8cc140e2fea1a05ce115bda5e91cfbdeb54cefb4 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 28 Aug 2021 16:48:43 -0600 Subject: More rust docs Switch from allow(missing_docs) to deny(missing_docs), which should gradually help us moving forward. Also, add a few missing docs, such as for sched and aio. --- src/mount/bsd.rs | 1 + src/mount/mod.rs | 3 +++ 2 files changed, 4 insertions(+) (limited to 'src/mount') diff --git a/src/mount/bsd.rs b/src/mount/bsd.rs index f0a9443a..9913fc20 100644 --- a/src/mount/bsd.rs +++ b/src/mount/bsd.rs @@ -347,6 +347,7 @@ impl<'a> Nmount<'a> { self } + /// Create a new `Nmount` struct with no options pub fn new() -> Self { Self::default() } diff --git a/src/mount/mod.rs b/src/mount/mod.rs index 8538bf3d..00303b6a 100644 --- a/src/mount/mod.rs +++ b/src/mount/mod.rs @@ -1,7 +1,10 @@ +//! 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", -- cgit v1.2.3