clippy correcgtions

This commit is contained in:
Fernando Herrera
2021-09-11 13:16:40 +01:00
parent 4b8ba29cdb
commit 9c98783917
2 changed files with 2 additions and 2 deletions

View File

@ -209,7 +209,7 @@ pub fn report_parsing_error(
Diagnostic::error()
.with_message("Unknown state")
.with_labels(vec![
Label::primary(diag_file_id, diag_range).with_message(format!("{}", name))
Label::primary(diag_file_id, diag_range).with_message(name.to_string())
])
}
ParseError::NonUtf8(span) => {