clippy fix

This commit is contained in:
gluax 2021-06-30 22:20:37 -07:00
parent eee9cfc1be
commit 12a702896f

View File

@ -101,7 +101,7 @@ impl SyntaxError {
}
pub fn unexpected_statement(got: String, expected: &str, span: &Span) -> Self {
Self::new_from_span(format!("expected '{}', got '{}'", expected, got.to_string()), span)
Self::new_from_span(format!("expected '{}', got '{}'", expected, got), span)
}
pub fn unexpected_str(got: &Token, expected: &str, span: &Span) -> Self {