fix(misc): fix clippy warnings

This commit is contained in:
Federico Terzi 2022-08-25 20:20:27 +02:00
parent fbdd46bf8c
commit 72c37984a4

View File

@ -320,7 +320,7 @@ fn convert_fat_libraries_to_arm(lib_dir: &Path) {
// Make sure it's a fat library // Make sure it's a fat library
let lipo_output = std::process::Command::new("lipo") let lipo_output = std::process::Command::new("lipo")
.args(&["-detailed_info", &path.to_string_lossy().to_string()]) .args(&["-detailed_info", &path.to_string_lossy()])
.output() .output()
.expect("unable to check if library is fat"); .expect("unable to check if library is fat");
let lipo_output = String::from_utf8_lossy(&lipo_output.stdout); let lipo_output = String::from_utf8_lossy(&lipo_output.stdout);
@ -339,9 +339,9 @@ fn convert_fat_libraries_to_arm(lib_dir: &Path) {
.args(&[ .args(&[
"-thin", "-thin",
"arm64", "arm64",
&path.to_string_lossy().to_string(), &path.to_string_lossy(),
"-output", "-output",
&path.to_string_lossy().to_string(), &path.to_string_lossy(),
]) ])
.output() .output()
.expect("unable to extract arm64 slice from library"); .expect("unable to extract arm64 slice from library");