mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 08:06:03 +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
@ -24,7 +24,7 @@ fn row_but_all() {
|
||||
#[test]
|
||||
fn throw_inner_error() {
|
||||
let error_msg = "This message should show up";
|
||||
let error = format!("(error make {{ msg: \"{}\" }})", error_msg);
|
||||
let error = format!("(error make {{ msg: \"{error_msg}\" }})");
|
||||
let actual = nu!(format!(
|
||||
"[[key value]; [foo 1] [foo 2] [{} 3]] | transpose",
|
||||
error
|
||||
|
Reference in New Issue
Block a user