diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-29 20:19:14 +0200 |
|---|---|---|
| committer | Matthias Krüger <matthias.krueger@famsik.de> | 2020-03-31 15:20:05 +0200 |
| commit | 08f2904dfaf5e75fbcc1305c8b0aad5fae71a4ff (patch) | |
| tree | c5a0e9fc7fb20a98186a484bdf83ec294476a81a /src/libstd/sys | |
| parent | 2113659479a82ea69633b23ef710b58ab127755e (diff) | |
| download | rust-08f2904dfaf5e75fbcc1305c8b0aad5fae71a4ff.tar.gz rust-08f2904dfaf5e75fbcc1305c8b0aad5fae71a4ff.zip | |
more clippy fixes
use is_empty() instead of len comparison (clippy::len_zero) use if let instead of while let loop that never loops (clippy::never_loop) remove redundant returns (clippy::needless_return) remove redundant closures (clippy::redundant_closure) use if let instead of match and wildcard pattern (clippy::single_match) don't repeat field names redundantly (clippy::redundant_field_names)
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/process/process_unix.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/unix/process/process_unix.rs b/src/libstd/sys/unix/process/process_unix.rs index 07d0fbf61fe..f389c60615f 100644 --- a/src/libstd/sys/unix/process/process_unix.rs +++ b/src/libstd/sys/unix/process/process_unix.rs @@ -72,7 +72,7 @@ impl Command { } }; - let mut p = Process { pid: pid, status: None }; + let mut p = Process { pid, status: None }; drop(output); let mut bytes = [0; 8]; |
