Remove semicolon; add &self to generic_error()
This commit is contained in:
parent
0870727241
commit
64435689fc
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue