mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
auto clippy fixes
This commit is contained in:
parent
72c85efc83
commit
ef39bad7c6
146 changed files with 750 additions and 1005 deletions
|
@ -264,7 +264,7 @@ fn mono_module_to_dylib<'a>(
|
|||
if main_fn.verify(true) {
|
||||
function_pass.run_on(&main_fn);
|
||||
} else {
|
||||
internal_error!("Main function {} failed LLVM verification in build. Uncomment things nearby to see more details.", main_fn_name);
|
||||
internal_error!("Main function {main_fn_name} failed LLVM verification in build. Uncomment things nearby to see more details.", );
|
||||
}
|
||||
|
||||
module_pass.run_on(env.module);
|
||||
|
|
|
@ -32,7 +32,7 @@ pub fn main() -> i32 {
|
|||
// To debug rustyline:
|
||||
// <UNCOMMENT> env_logger::init();
|
||||
// <RUN WITH:> RUST_LOG=rustyline=debug cargo run repl 2> debug.log
|
||||
print!("{}{}", WELCOME_MESSAGE, SHORT_INSTRUCTIONS);
|
||||
print!("{WELCOME_MESSAGE}{SHORT_INSTRUCTIONS}");
|
||||
|
||||
let mut editor = Editor::<ReplState>::new();
|
||||
let repl_helper = ReplState::new();
|
||||
|
@ -51,7 +51,7 @@ pub fn main() -> i32 {
|
|||
// If there was no output, don't print a blank line!
|
||||
// (This happens for something like a type annotation.)
|
||||
if !output.is_empty() {
|
||||
println!("{}", output);
|
||||
println!("{output}");
|
||||
}
|
||||
}
|
||||
Err(exit_code) => return exit_code,
|
||||
|
@ -70,7 +70,7 @@ pub fn main() -> i32 {
|
|||
return 1;
|
||||
}
|
||||
Err(err) => {
|
||||
eprintln!("REPL error: {:?}", err);
|
||||
eprintln!("REPL error: {err:?}");
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue