clippy: fix warnings from uninlined_format_args
This commit is contained in:
@@ -47,7 +47,7 @@ impl TestSysMemory {
|
||||
write_file_content(&sysmem, "block_size_bytes", "8000000\n");
|
||||
|
||||
for i in MEMORY_BLOCK_IDS {
|
||||
let block_dir = sysmem.join(format!("memory{}", i));
|
||||
let block_dir = sysmem.join(format!("memory{i}"));
|
||||
write_file_content(&block_dir, "removable", "1\n");
|
||||
write_file_content(&block_dir, "state", "online\n");
|
||||
let valid_zone = match i {
|
||||
|
||||
@@ -169,7 +169,7 @@ fn test_not_existing_file() {
|
||||
file1.path().to_str().unwrap()
|
||||
));
|
||||
|
||||
res.stderr_contains(format!("mcookie: cannot open {}", file_not_existing));
|
||||
res.stderr_contains(format!("mcookie: cannot open {file_not_existing}"));
|
||||
|
||||
// Ensure we only read up to the limit of bytes, despite the file being bigger
|
||||
res.stderr_contains(format!(
|
||||
|
||||
@@ -1440,7 +1440,7 @@ impl UCommand {
|
||||
// Input/output error (os error 5) is returned due to pipe closes. Buffer gets content anyway.
|
||||
Err(e) if e.raw_os_error().unwrap_or_default() == 5 => {}
|
||||
Err(e) => {
|
||||
eprintln!("Unexpected error: {:?}", e);
|
||||
eprintln!("Unexpected error: {e:?}");
|
||||
panic!("error forwarding output of pty");
|
||||
}
|
||||
}
|
||||
@@ -3675,7 +3675,7 @@ mod tests {
|
||||
|
||||
std::assert_eq!(
|
||||
String::from_utf8_lossy(out.stdout()),
|
||||
format!("{}\r\n", message)
|
||||
format!("{message}\r\n")
|
||||
);
|
||||
std::assert_eq!(String::from_utf8_lossy(out.stderr()), "");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user