Clippy fixes for Rust 1.58 (#733)

* Clippy fixes for Rust 1.58

* Try different message
This commit is contained in:
JT
2022-01-14 06:40:25 +11:00
committed by GitHub
parent 1ecbebb24a
commit bc1e1aa944
11 changed files with 11 additions and 19 deletions

View File

@ -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),
})?;