Skip to content
Snippets Groups Projects
Commit b1b8f94e authored by Stephen D's avatar Stephen D
Browse files

clean up warning

parent 520953aa
No related branches found
No related tags found
No related merge requests found
......@@ -17,16 +17,11 @@ pub enum TokenType {
pub struct Token {
pub line: usize,
pub lexeme: String,
pub token_type: TokenType,
}
impl Token {
pub fn new(token_type: TokenType, lexeme: String, line: usize) -> Self {
Self {
line,
lexeme,
token_type,
}
pub fn new(token_type: TokenType, _lexeme: String, line: usize) -> Self {
Self { line, token_type }
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment