Remove static livetime in ParserError::short()
This commit is contained in:
parent
2e6e63e77c
commit
d9019e408e
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ impl ParserError {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn short(sum: &'static str, text: String, idx: i32) -> ParserError {
|
||||
pub fn short(sum: &str, text: String, idx: i32) -> ParserError {
|
||||
ParserError {
|
||||
summary: String::from(sum),
|
||||
parsertext: text,
|
||||
|
|
Loading…
Reference in a new issue