Remove semicolon; add &self to generic_error()

This commit is contained in:
Eryn Wells 2016-12-27 11:30:08 -07:00
parent 0870727241
commit 64435689fc

View file

@ -106,8 +106,8 @@ impl Lexer {
Ok(Some(token))
}
fn generic_error(c: char) -> StateResult {
Err(self.error_string(format!("Invalid token character: {}", c)));
fn generic_error(&self, c: char) -> StateResult {
Err(self.error_string(format!("Invalid token character: {}", c)))
}
}