diff --git a/src/regexp/token.rs b/src/regexp/token.rs --- a/src/regexp/token.rs +++ b/src/regexp/token.rs @@ -35,8 +35,7 @@ pub trait Token { } pub struct Symbol { - position: usize, - value: char + position: usize } pub struct Asterisk { @@ -200,7 +199,7 @@ pub fn parse(pattern: &String, offset: u return Err(ParsingError::OpeningParenthesis {s: pattern.clone(), pos: i}); } c => { - res.push(Box::new(Symbol{position: i+offset, value: c})); + res.push(Box::new(Symbol{position: i+offset})); i += 1; } }