Skip to content

Commit

Permalink
Fix unused code warnings
Browse files Browse the repository at this point in the history
Signed-off-by: Otavio Salvador <[email protected]>
  • Loading branch information
otavio committed Sep 5, 2019
1 parent d0b23f3 commit 5214fb0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/unistd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2399,6 +2399,10 @@ libc_bitflags!{
}
}

#[cfg(not(any(target_os = "android",
target_os = "ios",
target_os = "macos",
target_env = "musl")))]
/// Checks the file named by `path` for accessibility according to the flags given by `amode`
/// See [access(2)](http://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html)
pub fn access<P: ?Sized + NixPath>(path: &P, amode: AccessFlags) -> Result<()> {
Expand Down

0 comments on commit 5214fb0

Please sign in to comment.