@@ -76,11 +76,11 @@ pub fn find_nonword_ranges(text: &[u8]) -> Vec<Range<usize>> {
7676 . collect ( )
7777}
7878
79- fn bytes_ignore_all_whitespace ( text : & [ u8 ] ) -> impl Iterator < Item = u8 > + use < ' _ > {
79+ fn bytes_ignore_all_whitespace ( text : & [ u8 ] ) -> impl Iterator < Item = u8 > {
8080 text. iter ( ) . copied ( ) . filter ( |b| !b. is_ascii_whitespace ( ) )
8181}
8282
83- fn bytes_ignore_whitespace_amount ( text : & [ u8 ] ) -> impl Iterator < Item = u8 > + use < ' _ > {
83+ fn bytes_ignore_whitespace_amount ( text : & [ u8 ] ) -> impl Iterator < Item = u8 > {
8484 let mut prev_was_space = false ;
8585 text. iter ( ) . filter_map ( move |& b| {
8686 let was_space = prev_was_space;
@@ -295,8 +295,7 @@ impl<'input> LocalDiffSource<'input, '_> {
295295
296296 fn hashed_words (
297297 & self ,
298- ) -> impl DoubleEndedIterator < Item = HashedWord < ' input > > + ExactSizeIterator + use < ' _ , ' input >
299- {
298+ ) -> impl DoubleEndedIterator < Item = HashedWord < ' input > > + ExactSizeIterator {
300299 iter:: zip ( self . ranges , self . hashes ) . map ( |( range, & hash) | {
301300 let text = & self . text [ range. clone ( ) ] ;
302301 HashedWord { hash, text }
@@ -780,22 +779,19 @@ impl<'input> ContentDiff<'input> {
780779 }
781780
782781 /// Returns contents at the unchanged `range`.
783- fn hunk_at < ' a , ' b > (
784- & ' a self ,
785- range : & ' b UnchangedRange ,
786- ) -> impl Iterator < Item = & ' input BStr > + use < ' a , ' b , ' input > {
782+ fn hunk_at ( & self , range : & UnchangedRange ) -> impl Iterator < Item = & ' input BStr > {
787783 itertools:: chain (
788784 iter:: once ( & self . base_input [ range. base . clone ( ) ] ) ,
789785 iter:: zip ( & self . other_inputs , & range. others ) . map ( |( input, r) | & input[ r. clone ( ) ] ) ,
790786 )
791787 }
792788
793789 /// Returns contents between the `previous` ends and the `current` starts.
794- fn hunk_between < ' a , ' b > (
795- & ' a self ,
796- previous : & ' b UnchangedRange ,
797- current : & ' b UnchangedRange ,
798- ) -> impl Iterator < Item = & ' input BStr > + use < ' a , ' b , ' input > {
790+ fn hunk_between (
791+ & self ,
792+ previous : & UnchangedRange ,
793+ current : & UnchangedRange ,
794+ ) -> impl Iterator < Item = & ' input BStr > {
799795 itertools:: chain (
800796 iter:: once ( & self . base_input [ previous. base . end ..current. base . start ] ) ,
801797 itertools:: izip!( & self . other_inputs, & previous. others, & current. others)
0 commit comments