mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 05:14:44 +02:00
Clippy fixes for Rust 1.58 (#733)
* Clippy fixes for Rust 1.58 * Try different message
This commit is contained in:
@ -92,11 +92,7 @@ impl Inc {
|
||||
x => {
|
||||
let msg = x.as_string().map_err(|e| LabeledError {
|
||||
label: "Unable to extract string".into(),
|
||||
msg: format!(
|
||||
"value cannot be converted to string {:?} - {}",
|
||||
x,
|
||||
e.to_string()
|
||||
),
|
||||
msg: format!("value cannot be converted to string {:?} - {}", x, e),
|
||||
span: Some(head),
|
||||
})?;
|
||||
|
||||
|
Reference in New Issue
Block a user