Skip to content

Commit 5214fb0

Browse files
committed
Fix unused code warnings
Signed-off-by: Otavio Salvador <[email protected]>
1 parent d0b23f3 commit 5214fb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/unistd.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,6 +2399,10 @@ libc_bitflags!{
23992399
}
24002400
}
24012401

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

0 commit comments

Comments
 (0)