File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -225,7 +225,7 @@ fn skip_literal(mut input: Cursor) -> PResult<bool> {
225225 Ok ( ( input, false ) )
226226}
227227
228- fn new_cursor ( s : & str ) -> Cursor {
228+ fn new_cursor ( s : & ' _ str ) -> Cursor < ' _ > {
229229 Cursor { rest : s, off : 0 , line : 0 , column : 0 }
230230}
231231
Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ pub fn whitespace(input: Cursor) -> PResult<()> {
128128 Ok ( ( input. advance ( input. len ( ) ) , ( ) ) )
129129}
130130
131- pub fn block_comment ( input : Cursor ) -> PResult < & str > {
131+ pub fn block_comment ( input : Cursor < ' _ > ) -> PResult < ' _ , & str > {
132132 if !input. starts_with ( "/*" ) {
133133 return Err ( LexError { line : input. line } ) ;
134134 }
@@ -177,7 +177,7 @@ fn is_ident_continue(c: char) -> bool {
177177 c. is_ascii_alphanumeric ( ) || c == '_' || ( c > '\x7f' && UnicodeXID :: is_xid_continue ( c) )
178178}
179179
180- pub fn symbol ( input : Cursor ) -> PResult < & str > {
180+ pub fn symbol ( input : Cursor < ' _ > ) -> PResult < ' _ , & str > {
181181 let mut chars = input. char_indices ( ) ;
182182
183183 let raw = input. starts_with ( "r#" ) ;
You can’t perform that action at this time.
0 commit comments