File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ use super::from_utf8_unchecked;
1313use super :: pattern:: Pattern ;
1414use super :: pattern:: { DoubleEndedSearcher , ReverseSearcher , Searcher } ;
1515use super :: validations:: { next_code_point, next_code_point_reverse} ;
16- use super :: LinesAnyMap ;
16+ use super :: LinesMap ;
1717use super :: { BytesIsNotEmpty , UnsafeBytesToStr } ;
1818use super :: { CharEscapeDebugContinue , CharEscapeDefault , CharEscapeUnicode } ;
1919use super :: { IsAsciiWhitespace , IsNotEmpty , IsWhitespace } ;
@@ -1091,7 +1091,7 @@ generate_pattern_iterators! {
10911091#[ stable( feature = "rust1" , since = "1.0.0" ) ]
10921092#[ must_use = "iterators are lazy and do nothing unless consumed" ]
10931093#[ derive( Clone , Debug ) ]
1094- pub struct Lines < ' a > ( pub ( super ) Map < SplitTerminator < ' a , char > , LinesAnyMap > ) ;
1094+ pub struct Lines < ' a > ( pub ( super ) Map < SplitTerminator < ' a , char > , LinesMap > ) ;
10951095
10961096#[ stable( feature = "rust1" , since = "1.0.0" ) ]
10971097impl < ' a > Iterator for Lines < ' a > {
Original file line number Diff line number Diff line change @@ -997,7 +997,7 @@ impl str {
997997 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
998998 #[ inline]
999999 pub fn lines ( & self ) -> Lines < ' _ > {
1000- Lines ( self . split_terminator ( '\n' ) . map ( LinesAnyMap ) )
1000+ Lines ( self . split_terminator ( '\n' ) . map ( LinesMap ) )
10011001 }
10021002
10031003 /// An iterator over the lines of a string.
@@ -2590,7 +2590,7 @@ impl Default for &mut str {
25902590impl_fn_for_zst ! {
25912591 /// A nameable, cloneable fn type
25922592 #[ derive( Clone ) ]
2593- struct LinesAnyMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
2593+ struct LinesMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
25942594 let l = line. len( ) ;
25952595 if l > 0 && line. as_bytes( ) [ l - 1 ] == b'\r' { & line[ 0 .. l - 1 ] }
25962596 else { line }
You can’t perform that action at this time.
0 commit comments