auto clippy fixes

This commit is contained in:
Folkert 2023-06-26 20:42:50 +02:00
parent 72c85efc83
commit ef39bad7c6
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
146 changed files with 750 additions and 1005 deletions

View file

@ -450,8 +450,7 @@ pub(crate) fn surgery_pe(executable_path: &Path, metadata_path: &Path, roc_app_b
.contains(&name.as_str());
if *address == 0 && !name.starts_with("roc") && !is_ingested_compiler_rt {
eprintln!(
"I don't know the address of the {} function! this may cause segfaults",
name
"I don't know the address of the {name} function! this may cause segfaults"
);
}
@ -1718,7 +1717,7 @@ mod test {
std::io::stdout().write_all(&output.stdout).unwrap();
std::io::stderr().write_all(&output.stderr).unwrap();
panic!("zig build-exe failed: {}", command_str);
panic!("zig build-exe failed: {command_str}");
}
let preprocessed_host_filename =
@ -1939,7 +1938,7 @@ mod test {
std::io::stdout().write_all(&output.stdout).unwrap();
std::io::stderr().write_all(&output.stderr).unwrap();
panic!("zig build-exe failed: {}", command_str);
panic!("zig build-exe failed: {command_str}");
}
let host_bytes = std::fs::read(dir.join("host.exe")).unwrap();