1.65 clippy fixes

This commit is contained in:
Folkert 2022-11-03 16:20:37 +01:00
parent f0d6e418fa
commit 66a1ba00eb
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
53 changed files with 224 additions and 225 deletions

View file

@ -47,7 +47,7 @@ pub fn create_dylib_macho(
}
std::fs::write(
&dummy_obj_file,
dummy_obj_file,
out_object.write().expect("failed to build output object"),
)
.expect("failed to write object to file");
@ -67,7 +67,7 @@ pub fn create_dylib_macho(
let output = Command::new("ld")
.args(ld_prefix_args)
.args(&[
.args([
ld_flag_soname,
dummy_lib_file.file_name().unwrap().to_str().unwrap(),
dummy_obj_file.to_str().unwrap(),