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

@ -200,7 +200,7 @@ mod test {
let expected = expected.trim_end();
if x != expected {
println!("{}", x);
println!("{x}");
}
assert_eq!(expected, x);

View file

@ -327,7 +327,7 @@ fn run_expect_fx<'a, W: std::io::Write>(
try_run_jit_function!(lib, expect.name, (), |v: ()| v);
if let Err((msg, _)) = result {
internal_error!("roc panic {}", msg);
internal_error!("roc panic {msg}");
}
if sequence.count_failures() > 0 {
@ -386,7 +386,7 @@ fn run_expect_fx<'a, W: std::io::Write>(
ExpectSequence::START_OFFSET,
)?;
}
_ => println!("received signal {}", sig),
_ => println!("received signal {sig}"),
}
}
@ -638,7 +638,7 @@ impl ExpectSequence {
0 => std::hint::spin_loop(),
1 => break ChildProcessMsg::Expect,
2 => break ChildProcessMsg::Dbg,
n => internal_error!("invalid atomic value set by the child: {:#x}", n),
n => internal_error!("invalid atomic value set by the child: {n:#x}"),
}
}
}