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) => {

View file

@ -606,7 +606,7 @@ pub fn parse_call(
if spans.len() > 1 {
let test_equal = working_set.get_span_contents(spans[1]);
if test_equal == &[b'='] {
if test_equal == [b'='] {
return (
garbage(Span::new(0, 0)),
Some(ParseError::UnknownState(