mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-28 19:23:24 +03:00
clippy fix
This commit is contained in:
parent
eee9cfc1be
commit
12a702896f
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user