Skip to content

Commit 32d07cc

Browse files
committed
bootstrap: be more explicit on what we collect into. NFC
1 parent 10f42cb commit 32d07cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/bootstrap/lib.rs

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

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

0 commit comments

Comments
 (0)