mirror of
https://github.com/nushell/nushell.git
synced 2025-08-14 13:39:08 +02:00
Fix easy clippy lints from latest stable (#16053)
1.88.0 was released today, clippy now lints (machine-applicable) against: - format strings with empty braces that could be inlined - easy win - `manual_abs_diff` - returning of a stored result of the last expression. - this can be somewhat contentious but touched only a few places
This commit is contained in:
committed by
GitHub
parent
372d576846
commit
9da0f41ebb
@ -321,7 +321,7 @@ pub fn nu_run_test(opts: NuOpts, commands: impl AsRef<str>, with_std: bool) -> O
|
||||
out.into_owned()
|
||||
};
|
||||
|
||||
println!("=== stderr\n{}", err);
|
||||
println!("=== stderr\n{err}");
|
||||
|
||||
Outcome::new(out, err.into_owned(), output.status)
|
||||
}
|
||||
@ -397,7 +397,7 @@ where
|
||||
.spawn()
|
||||
{
|
||||
Ok(child) => child,
|
||||
Err(why) => panic!("Can't run test {}", why),
|
||||
Err(why) => panic!("Can't run test {why}"),
|
||||
};
|
||||
|
||||
let output = process
|
||||
@ -407,7 +407,7 @@ where
|
||||
let out = collapse_output(&String::from_utf8_lossy(&output.stdout));
|
||||
let err = String::from_utf8_lossy(&output.stderr);
|
||||
|
||||
println!("=== stderr\n{}", err);
|
||||
println!("=== stderr\n{err}");
|
||||
|
||||
Outcome::new(out, err.into_owned(), output.status)
|
||||
}
|
||||
|
Reference in New Issue
Block a user