Rollup merge of #131626 - matthiaskrgr:dont_string, r=lqd

remove a couple of redundant String to String conversion
This commit is contained in:
Trevor Gross 2024-10-12 21:38:38 -05:00 committed by GitHub
commit 39071fdc58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 4 deletions

View file

@ -137,7 +137,7 @@ pub fn extra_compiler_flags() -> Option<(Vec<String>, bool)> {
let content = if arg.len() == a.len() {
// A space-separated option, like `-C incremental=foo` or `--crate-type rlib`
match args.next() {
Some(arg) => arg.to_string(),
Some(arg) => arg,
None => continue,
}
} else if arg.get(a.len()..a.len() + 1) == Some("=") {