lifetimes :(

This commit is contained in:
jane 2021-12-26 21:39:39 -05:00
parent b96f0d80db
commit 3f5e8a4804

View file

@ -97,7 +97,7 @@ impl<'a> Pattern<'a> for Value {
}
}
pub fn parse_line(v: Vec<String>) -> Result<Box<dyn Pattern<'_>>, ParseError> {
pub fn parse_line<'a>(v: Vec<String>) -> Result<Box<dyn Pattern<'a>>, ParseError> {
let res: Result<Box<dyn Pattern>, ParseError> = v.try_into();
res
}