Skip to content

Commit 2ac258a

Browse files
authored
Rollup merge of rust-lang#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.
2 parents b68fc18 + 32d07cc commit 2ac258a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -777,10 +777,10 @@ impl Build {
777777
fn cflags(&self, target: Interned<String>, which: GitRepo) -> Vec<String> {
778778
// Filter out -O and /O (the optimization flags) that we picked up from
779779
// cc-rs because the build scripts will determine that for themselves.
780-
let mut base: Vec<String> = self.cc[&target].args().iter()
780+
let mut base = self.cc[&target].args().iter()
781781
.map(|s| s.to_string_lossy().into_owned())
782782
.filter(|s| !s.starts_with("-O") && !s.starts_with("/O"))
783-
.collect::<Vec<_>>();
783+
.collect::<Vec<String>>();
784784

785785
// If we're compiling on macOS then we add a few unconditional flags
786786
// indicating that we want libc++ (more filled out than libstdc++) and

0 commit comments

Comments
 (0)