diff --git a/src/storage/parser.rs b/src/storage/parser.rs index c7df264c..ba5afc3b 100644 --- a/src/storage/parser.rs +++ b/src/storage/parser.rs @@ -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,