Clippy fix for Rust 1.63 (#6299)

Take more sensitive lints into account

Somewhat ugly in some cases is the replacement of `.get(0)` with
`.first()`
This commit is contained in:
Stefan Holderbach
2022-08-11 18:54:54 +02:00
committed by GitHub
parent 08c98967e0
commit c2f4969d4f
24 changed files with 35 additions and 41 deletions

View File

@ -145,15 +145,13 @@ fn alias_db(
Vec::new(),
)),
},
s => {
return Err(ShellError::GenericError(
"Connection doesn't define a query".into(),
format!("Expected a connection with query. Got {}", s),
Some(call.head),
None,
Vec::new(),
))
}
s => Err(ShellError::GenericError(
"Connection doesn't define a query".into(),
format!("Expected a connection with query. Got {}", s),
Some(call.head),
None,
Vec::new(),
)),
},
}
}