diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-09-28 09:49:59 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@sequoia-pgp.org> | 2021-09-30 08:31:12 +0300 |
commit | 93bf23b79a6ae7bf1a81964a338754d0c16d2ca0 (patch) | |
tree | b1e94ac658ecf4a88fa28624d748efa53e4496aa /ipc | |
parent | 28394a99d39d9c46a9cb6e746159b5ae56871737 (diff) |
Return a value without first assigning it to a variable
Found by clippy lint let_and_return:
https://rust-lang.github.io/rust-clippy/master/index.html#let_and_return
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ipc/src/lib.rs b/ipc/src/lib.rs index bda80341..3f1c1138 100644 --- a/ipc/src/lib.rs +++ b/ipc/src/lib.rs @@ -532,6 +532,7 @@ fn wsa_cleanup() { } } +#[allow(clippy::let_and_return)] pub(crate) fn new_background_command<S>(program: S) -> Command where S: AsRef<std::ffi::OsStr>, |