diff --git a/src/token.rs b/src/token.rs index 9f51ce266e4251dd3d7a7043202ea82d5647b8ab..c8123814d62598355188677314746bbf5a8a65ee 100644 --- a/src/token.rs +++ b/src/token.rs @@ -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 } } }