diff options
author | Alan Somers <asomers@gmail.com> | 2022-09-11 16:25:33 -0600 |
---|---|---|
committer | Alan Somers <asomers@gmail.com> | 2022-09-11 16:25:33 -0600 |
commit | 3aedbfa08ee7459025d8f45bda034d8fd4d5c9b7 (patch) | |
tree | 603527fe749253cb30c36fa88e184b68ee4349f0 /src/fcntl.rs | |
parent | 1eb589f26fe4b56ce799e05d3b5fb527729cffdf (diff) | |
download | nix-3aedbfa08ee7459025d8f45bda034d8fd4d5c9b7.zip |
Clippy cleanup
Diffstat (limited to 'src/fcntl.rs')
-rw-r--r-- | src/fcntl.rs | 4 |
1 files changed, 1 insertions, 3 deletions
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(()) } |