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

@ -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);

View file

@ -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;
}
}