about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-31 15:59:52 +0200
committerGitHub <noreply@github.com>2020-03-31 15:59:52 +0200
commit976f8d59dddac2ccddbe940953ee6247454e6736 (patch)
tree16273bf92f9580d0c1a3fbb99b10d32c234902b7 /src/libstd/sys
parent4aeeb81db5bc4770e06dbe6f113f92588ccbfccc (diff)
parent08f2904dfaf5e75fbcc1305c8b0aad5fae71a4ff (diff)
downloadrust-976f8d59dddac2ccddbe940953ee6247454e6736.tar.gz
rust-976f8d59dddac2ccddbe940953ee6247454e6736.zip
Rollup merge of #70613 - matthiaskrgr:cl5ppy_squashed, r=Centril
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)

r? @Centril
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/unix/process/process_unix.rs2
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];