Skip to content

Commit 7ff9595

Browse files
author
Bryant Mairs
committed
Require docs for features and ifaddrs module
1 parent 3ecc2cd commit 7ff9595

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/features.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//! Feature tests for OS functionality
12
pub use self::os::*;
23

34
#[cfg(any(target_os = "linux", target_os = "android"))]
@@ -82,6 +83,7 @@ mod os {
8283
}
8384
}
8485

86+
/// Check if the OS supports atomic close-on-exec for sockets
8587
pub fn socket_atomic_cloexec() -> bool {
8688
kernel_version() >= VERS_2_6_27
8789
}
@@ -94,6 +96,7 @@ mod os {
9496

9597
#[cfg(any(target_os = "macos", target_os = "freebsd", target_os = "dragonfly", target_os = "ios", target_os = "openbsd", target_os = "netbsd"))]
9698
mod os {
99+
/// Check if the OS supports atomic close-on-exec for sockets
97100
pub fn socket_atomic_cloexec() -> bool {
98101
false
99102
}

src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pub extern crate libc;
3030
use errno::Errno;
3131

3232
pub mod errno;
33+
#[deny(missing_docs)]
3334
pub mod features;
3435
pub mod fcntl;
3536

@@ -59,6 +60,7 @@ pub mod net;
5960
target_os = "macos",
6061
target_os = "netbsd",
6162
target_os = "openbsd"))]
63+
#[deny(missing_docs)]
6264
pub mod ifaddrs;
6365

6466
#[cfg(any(target_os = "linux", target_os = "android"))]

0 commit comments

Comments
 (0)