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

@ -90,7 +90,7 @@ fn main() -> io::Result<()> {
let dispatcher = DefaultImportDispatcher::new(&wasi_argv);
let mut inst =
Instance::for_module(&arena, &module, dispatcher, is_debug_mode).unwrap_or_else(|e| {
eprintln!("{}", e);
eprintln!("{e}");
process::exit(2);
});
@ -103,14 +103,14 @@ fn main() -> io::Result<()> {
match result {
Ok(Some(val)) => {
if is_hex_format {
println!("{:#x?}", val)
println!("{val:#x?}")
} else {
println!("{:?}", val)
println!("{val:?}")
}
}
Ok(None) => {}
Err(e) => {
eprintln!("{}", e);
eprintln!("{e}");
process::exit(3);
}
}