From 46a869814ddbb2678e968fcb87cfd7fb8043f177 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sat, 16 May 2020 17:03:47 -0600 Subject: misc clippy cleanup --- src/fcntl.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/fcntl.rs') diff --git a/src/fcntl.rs b/src/fcntl.rs index ea036427..1581d3a7 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -161,6 +161,8 @@ libc_bitflags!( } ); +// The conversion is not identical on all operating systems. +#[allow(clippy::identity_conversion)] pub fn open(path: &P, oflag: OFlag, mode: Mode) -> Result { let fd = path.with_nix_path(|cstr| { unsafe { libc::open(cstr.as_ptr(), oflag.bits(), mode.bits() as c_uint) } @@ -169,6 +171,8 @@ pub fn open(path: &P, oflag: OFlag, mode: Mode) -> Result( dirfd: RawFd, -- cgit v1.2.3