mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -161,7 +161,7 @@ pub fn build_zig_host_native(
|
|||
|
||||
zig_cmd.args([
|
||||
zig_host_src,
|
||||
&format!("-femit-bin={}", emit_bin),
|
||||
&format!("-femit-bin={emit_bin}"),
|
||||
"--pkg-begin",
|
||||
"glue",
|
||||
find_zig_glue_path().to_str().unwrap(),
|
||||
|
@ -399,7 +399,7 @@ pub fn build_swift_host_native(
|
|||
|
||||
match arch {
|
||||
Architecture::Aarch64(_) => command.arg("-arm64"),
|
||||
_ => command.arg(format!("-{}", arch)),
|
||||
_ => command.arg(format!("-{arch}")),
|
||||
};
|
||||
|
||||
command
|
||||
|
@ -928,7 +928,7 @@ fn link_linux(
|
|||
.map(|segments| segments.join("/"))
|
||||
.collect::<Vec<String>>()
|
||||
.join("\n");
|
||||
eprintln!("We looked in the following directories:\n{}", dirs);
|
||||
eprintln!("We looked in the following directories:\n{dirs}");
|
||||
process::exit(1);
|
||||
}
|
||||
};
|
||||
|
@ -1085,8 +1085,8 @@ fn link_macos(
|
|||
|
||||
let sdk_path = "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib";
|
||||
if Path::new(sdk_path).exists() {
|
||||
ld_command.arg(format!("-L{}", sdk_path));
|
||||
ld_command.arg(format!("-L{}/swift", sdk_path));
|
||||
ld_command.arg(format!("-L{sdk_path}"));
|
||||
ld_command.arg(format!("-L{sdk_path}/swift"));
|
||||
};
|
||||
|
||||
let roc_link_flags = match env::var("ROC_LINK_FLAGS") {
|
||||
|
@ -1288,9 +1288,7 @@ pub fn llvm_module_to_dylib(
|
|||
|
||||
assert!(
|
||||
exit_status.success(),
|
||||
"\n___________\nLinking command failed with status {:?}:\n\n {:?}\n___________\n",
|
||||
exit_status,
|
||||
child
|
||||
"\n___________\nLinking command failed with status {exit_status:?}:\n\n {child:?}\n___________\n"
|
||||
);
|
||||
|
||||
// Load the dylib
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue