Remove static livetime in ParserError::short()

This commit is contained in:
Matthias Beyer 2015-11-21 17:28:46 +01:00
parent 2e6e63e77c
commit d9019e408e

View file

@ -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,