Fix 2 clippy warnings with temporary references (#28744)
This commit is contained in:
parent
636baaf494
commit
d0f736a0d9
|
@ -400,7 +400,7 @@ fn add_to_path(new_path: &str) -> bool {
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
|
|
||||||
if !old_path.contains(&new_path) {
|
if !old_path.contains(new_path) {
|
||||||
let mut new_path = new_path.to_string();
|
let mut new_path = new_path.to_string();
|
||||||
if !old_path.is_empty() {
|
if !old_path.is_empty() {
|
||||||
new_path.push(';');
|
new_path.push(';');
|
||||||
|
|
|
@ -699,7 +699,7 @@ fn build_sbf_package(config: &Config, target_directory: &Path, package: &cargo_m
|
||||||
#[cfg(windows)]
|
#[cfg(windows)]
|
||||||
let output = spawn(
|
let output = spawn(
|
||||||
&llvm_bin.join("llvm-objcopy"),
|
&llvm_bin.join("llvm-objcopy"),
|
||||||
&[
|
[
|
||||||
"--strip-all".as_ref(),
|
"--strip-all".as_ref(),
|
||||||
program_unstripped_so.as_os_str(),
|
program_unstripped_so.as_os_str(),
|
||||||
program_so.as_os_str(),
|
program_so.as_os_str(),
|
||||||
|
|
Loading…
Reference in New Issue