1
Fork 0

remove a couple of redundant String to String conversion

This commit is contained in:
Matthias Krüger 2024-10-12 22:07:46 +02:00
parent e200c7f2e1
commit 4bc21e318c
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("=") {