mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
clippy cleanup
This commit is contained in:
parent
8593ddf18d
commit
7cba55578a
4 changed files with 23 additions and 23 deletions
|
|
@ -373,7 +373,7 @@ impl CompilerError for LexError {
|
|||
fn message(&self) -> String {
|
||||
match &self.kind {
|
||||
LexErrorKind::InvalidCharacter(char) => format!("Unexpected character: '{}'", char),
|
||||
LexErrorKind::InvalidFloat(_) => format!("Invalid number"),
|
||||
LexErrorKind::InvalidFloat(_) => "Invalid number".to_string(),
|
||||
LexErrorKind::FloatInfiniteLiteral => "Number literal too long".to_string(),
|
||||
LexErrorKind::UnclosedStringLiteral => "String literal not closed".to_string(),
|
||||
LexErrorKind::SingleBang => "Expected '=' after '!'".to_string(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue