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))
|
Ok(Some(token))
|
||||||
}
|
}
|
||||||
|
|
||||||
fn generic_error(c: char) -> StateResult {
|
fn generic_error(&self, c: char) -> StateResult {
|
||||||
Err(self.error_string(format!("Invalid token character: {}", c)));
|
Err(self.error_string(format!("Invalid token character: {}", c)))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue