From 3aedbfa08ee7459025d8f45bda034d8fd4d5c9b7 Mon Sep 17 00:00:00 2001 From: Alan Somers Date: Sun, 11 Sep 2022 16:25:33 -0600 Subject: Clippy cleanup --- src/fcntl.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/fcntl.rs') diff --git a/src/fcntl.rs b/src/fcntl.rs index 160b022d..65082834 100644 --- a/src/fcntl.rs +++ b/src/fcntl.rs @@ -809,9 +809,7 @@ pub fn fspacectl_all(fd: RawFd, offset: libc::off_t, len: libc::off_t) 0, // No flags are currently supported &mut rqsr )}; - if let Err(e) = Errno::result(res) { - return Err(e); - } + Errno::result(res)?; } Ok(()) } -- cgit v1.2.3