File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -269,7 +269,7 @@ fn is_line_trailer(line: &str) -> bool {
269269 }
270270}
271271
272- fn line_as_list_item ( line : & str ) -> Option < Token > {
272+ fn line_as_list_item ( line : & str ) -> Option < Token < ' _ > > {
273273 enum LiState {
274274 New ,
275275 IndentSp1 ,
@@ -358,7 +358,7 @@ fn line_as_list_item(line: &str) -> Option<Token> {
358358 } )
359359}
360360
361- fn line_as_code_fence ( line : & ' _ str ) -> Option < CodeFence > {
361+ fn line_as_code_fence ( line : & str ) -> Option < CodeFence < ' _ > > {
362362 enum FenceState {
363363 New ,
364364 IndentSp1 ,
@@ -416,7 +416,7 @@ fn line_as_code_fence(line: &'_ str) -> Option<CodeFence> {
416416 }
417417}
418418
419- fn line_as_line_block_quote ( line : & str ) -> Option < Token > {
419+ fn line_as_line_block_quote ( line : & str ) -> Option < Token < ' _ > > {
420420 if line. starts_with ( '>' ) {
421421 Some ( Token :: BlockQuote ( line) )
422422 } else {
@@ -431,7 +431,7 @@ mod tests {
431431
432432 use pretty_assertions:: assert_eq;
433433
434- fn parse ( s : & str ) -> Vec < Token > {
434+ fn parse ( s : & str ) -> Vec < Token < ' _ > > {
435435 super :: parse ( s, "#" )
436436 }
437437
Original file line number Diff line number Diff line change @@ -120,15 +120,15 @@ mod tests {
120120
121121 type Item < ' text > = <WordIter < ' text > as Iterator >:: Item ;
122122
123- fn iter ( text : & str ) -> WordIter {
123+ fn iter ( text : & str ) -> WordIter < ' _ > {
124124 WordIter :: new ( text, "#" )
125125 }
126126
127127 fn collect ( it : WordIter ) -> Vec < Item > {
128128 it. collect ( )
129129 }
130130
131- fn iter_collect ( text : & str ) -> Vec < Item > {
131+ fn iter_collect ( text : & str ) -> Vec < Item < ' _ > > {
132132 collect ( iter ( text) )
133133 }
134134
You can’t perform that action at this time.
0 commit comments