diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2018-11-29 13:10:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-29 13:10:27 +0100 |
| commit | 8ca3cb90b35e8e153b4cd9b396f41ffa21b77085 (patch) | |
| tree | b81a4fa376410a022380d89c80ec2b30df77e01a /src/bootstrap | |
| parent | 5a03532ea94890c9c4fd77819edaab4fa9d7376c (diff) | |
| parent | 32d07cc2fc23e7cfa8b23a495e6667bcc7cf643a (diff) | |
| download | rust-8ca3cb90b35e8e153b4cd9b396f41ffa21b77085.tar.gz rust-8ca3cb90b35e8e153b4cd9b396f41ffa21b77085.zip | |
Rollup merge of #55391 - matthiaskrgr:bootstrap_cleanup, r=TimNN
bootstrap: clean up a few clippy findings remove useless format!()s remove redundant field names in a few struct initializations pass slice instead of a vector to a function use is_empty() instead of comparisons to .len() No functional change intended.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/lib.rs b/src/bootstrap/lib.rs index 76697e482d3..2832f5bebdd 100644 --- a/src/bootstrap/lib.rs +++ b/src/bootstrap/lib.rs @@ -777,10 +777,10 @@ impl Build { fn cflags(&self, target: Interned<String>, which: GitRepo) -> Vec<String> { // Filter out -O and /O (the optimization flags) that we picked up from // cc-rs because the build scripts will determine that for themselves. - let mut base: Vec<String> = self.cc[&target].args().iter() + let mut base = self.cc[&target].args().iter() .map(|s| s.to_string_lossy().into_owned()) .filter(|s| !s.starts_with("-O") && !s.starts_with("/O")) - .collect::<Vec<_>>(); + .collect::<Vec<String>>(); // If we're compiling on macOS then we add a few unconditional flags // indicating that we want libc++ (more filled out than libstdc++) and |
