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 @@ -995,7 +995,7 @@ impl str {
995995 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
996996 #[ inline]
997997 pub fn lines ( & self ) -> Lines < ' _ > {
998- Lines ( self . split_terminator ( '\n' ) . map ( LinesAnyMap ) )
998+ Lines ( self . split_terminator ( '\n' ) . map ( LinesMap ) )
999999 }
10001000
10011001 /// An iterator over the lines of a string.
@@ -2588,7 +2588,7 @@ impl Default for &mut str {
25882588impl_fn_for_zst ! {
25892589 /// A nameable, cloneable fn type
25902590 #[ derive( Clone ) ]
2591- struct LinesAnyMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
2591+ struct LinesMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
25922592 let l = line. len( ) ;
25932593 if l > 0 && line. as_bytes( ) [ l - 1 ] == b'\r' { & line[ 0 .. l - 1 ] }
25942594 else { line }
You can’t perform that action at this time.
0 commit comments