mirror of
https://github.com/nushell/nushell.git
synced 2025-08-15 21:27:51 +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
@ -1261,10 +1261,7 @@ pub(crate) fn handle_engine_call(
|
||||
|
||||
let context = context.ok_or_else(|| ShellError::GenericError {
|
||||
error: "A plugin execution context is required for this engine call".into(),
|
||||
msg: format!(
|
||||
"attempted to call {} outside of a command invocation",
|
||||
call_name
|
||||
),
|
||||
msg: format!("attempted to call {call_name} outside of a command invocation"),
|
||||
span: None,
|
||||
help: Some("this is probably a bug with the plugin".into()),
|
||||
inner: vec![],
|
||||
|
Reference in New Issue
Block a user