Fix 2 clippy warnings with temporary references (#28744)

This commit is contained in:
Denis K 2022-11-08 19:59:56 +05:00 committed by GitHub
parent 636baaf494
commit d0f736a0d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -400,7 +400,7 @@ fn add_to_path(new_path: &str) -> bool {
return false;
};
if !old_path.contains(&new_path) {
if !old_path.contains(new_path) {
let mut new_path = new_path.to_string();
if !old_path.is_empty() {
new_path.push(';');

View File

@ -699,7 +699,7 @@ fn build_sbf_package(config: &Config, target_directory: &Path, package: &cargo_m
#[cfg(windows)]
let output = spawn(
&llvm_bin.join("llvm-objcopy"),
&[
[
"--strip-all".as_ref(),
program_unstripped_so.as_os_str(),
program_so.as_os_str(),