Take a String by move into error_string()
This commit is contained in:
parent
7d42ad280f
commit
8d00e3afcf
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ impl Lexer {
|
|||
self.input[self.begin .. self.forward].to_string()
|
||||
}
|
||||
|
||||
fn error_string(&self, message: &str) -> String {
|
||||
fn error_string(&self, message: String) -> String {
|
||||
format!("{}:{}: {}", self.line, self.line_offset, message)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue