mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-28 11:37:44 +00:00
Fix clippy::uninlined_format_args .
This commit is contained in:
parent
5d986bfb4c
commit
353eb53367
39 changed files with 127 additions and 169 deletions
|
@ -935,7 +935,7 @@ mod tests_split_iterator {
|
|||
// minimal amount of quoting in typical cases.
|
||||
match escape_style(s) {
|
||||
EscapeStyle::None => s.into(),
|
||||
EscapeStyle::SingleQuoted => format!("'{}'", s).into(),
|
||||
EscapeStyle::SingleQuoted => format!("'{s}'").into(),
|
||||
EscapeStyle::Mixed => {
|
||||
let mut quoted = String::new();
|
||||
quoted.push('\'');
|
||||
|
@ -1015,17 +1015,13 @@ mod tests_split_iterator {
|
|||
match split(input) {
|
||||
Err(actual) => {
|
||||
panic!(
|
||||
"[{i}] calling split({:?}):\nexpected: Ok({:?})\n actual: Err({:?})\n",
|
||||
input, expected, actual
|
||||
"[{i}] calling split({input:?}):\nexpected: Ok({expected:?})\n actual: Err({actual:?})\n"
|
||||
);
|
||||
}
|
||||
Ok(actual) => {
|
||||
assert!(
|
||||
expected == actual.as_slice(),
|
||||
"[{i}] After split({:?}).unwrap()\nexpected: {:?}\n actual: {:?}\n",
|
||||
input,
|
||||
expected,
|
||||
actual
|
||||
"[{i}] After split({input:?}).unwrap()\nexpected: {expected:?}\n actual: {actual:?}\n"
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue