mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 19:47:45 +02:00
Fix latest clippy warnings (#3049)
This commit is contained in:
@ -564,9 +564,7 @@ impl ShellError {
|
||||
diag.message = format!("Missing property (for {})", subpath.item);
|
||||
} else {
|
||||
let subpath = Label::primary(0, subpath.span).with_message(subpath.item);
|
||||
let mut labels = vec![];
|
||||
|
||||
labels.push(subpath);
|
||||
let mut labels = vec![subpath];
|
||||
|
||||
if expr.span != Span::unknown() {
|
||||
let expr = Label::primary(0, expr.span).with_message(expr.item);
|
||||
|
Reference in New Issue
Block a user