Add missing lifetime specifier

This commit is contained in:
Jeremy Stucki 2019-06-23 22:32:23 +02:00 committed by Jeremy Stucki
parent 80f4c49c1b
commit b17cec509e
No known key found for this signature in database
GPG Key ID: 8F548A5A2ED13F58

View File

@ -20,7 +20,7 @@ pub fn string_to_stream(source_str: String) -> TokenStream {
}
/// Map string to parser (via tts)
pub fn string_to_parser(ps: &ParseSess, source_str: String) -> Parser {
pub fn string_to_parser(ps: &ParseSess, source_str: String) -> Parser<'_> {
new_parser_from_source_str(ps, PathBuf::from("bogofile").into(), source_str)
}