diff --git a/src/lex/lexer.rs b/src/lex/lexer.rs index c9abf06..6271f63 100644 --- a/src/lex/lexer.rs +++ b/src/lex/lexer.rs @@ -98,7 +98,7 @@ impl Lexer { } '{' | '}' | '(' | ')' | '[' | ']' | ',' | ';' | ':' => { - tokens.push(self.consume_symbol(c.clone())); + tokens.push(self.consume_symbol(c)); } '.' => { @@ -106,7 +106,7 @@ impl Lexer { } _ => { - tokens.push(self.consume_unknown(c.clone())); + tokens.push(self.consume_unknown(c)); } } }