diff options
author | Matthias Beyer <matthias.beyer@ifm.com> | 2022-07-22 08:23:37 +0200 |
---|---|---|
committer | Matthias Beyer <matthias.beyer@ifm.com> | 2022-08-18 14:46:54 +0200 |
commit | 47f6a69ebbbac8b440b7b900552fdb59fc6323ff (patch) | |
tree | 015ec867afaeb967de643855daaa72feb51bc930 | |
parent | 8c69eb8b86b97e8880880db6942c62140fe47f81 (diff) |
Fix clippy in flockfile: Remove let-unit-value
This patch fixes `clippy::let_unit_value`.
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r-- | crates/common/flockfile/src/unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/common/flockfile/src/unix.rs b/crates/common/flockfile/src/unix.rs index 4ef847d2..5980397f 100644 --- a/crates/common/flockfile/src/unix.rs +++ b/crates/common/flockfile/src/unix.rs @@ -56,7 +56,7 @@ impl Flockfile { } }; - let () = match flock(file.as_raw_fd(), FlockArg::LockExclusiveNonblock) { + match flock(file.as_raw_fd(), FlockArg::LockExclusiveNonblock) { Ok(()) => (), Err(err) => { return Err(FlockfileError::FromNix { path, source: err }); |