File tree 2 files changed +4
-4
lines changed
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;
13
13
use super :: pattern:: Pattern ;
14
14
use super :: pattern:: { DoubleEndedSearcher , ReverseSearcher , Searcher } ;
15
15
use super :: validations:: { next_code_point, next_code_point_reverse} ;
16
- use super :: LinesAnyMap ;
16
+ use super :: LinesMap ;
17
17
use super :: { BytesIsNotEmpty , UnsafeBytesToStr } ;
18
18
use super :: { CharEscapeDebugContinue , CharEscapeDefault , CharEscapeUnicode } ;
19
19
use super :: { IsAsciiWhitespace , IsNotEmpty , IsWhitespace } ;
@@ -1091,7 +1091,7 @@ generate_pattern_iterators! {
1091
1091
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1092
1092
#[ must_use = "iterators are lazy and do nothing unless consumed" ]
1093
1093
#[ 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 > ) ;
1095
1095
1096
1096
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
1097
1097
impl < ' a > Iterator for Lines < ' a > {
Original file line number Diff line number Diff line change @@ -995,7 +995,7 @@ impl str {
995
995
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
996
996
#[ inline]
997
997
pub fn lines ( & self ) -> Lines < ' _ > {
998
- Lines ( self . split_terminator ( '\n' ) . map ( LinesAnyMap ) )
998
+ Lines ( self . split_terminator ( '\n' ) . map ( LinesMap ) )
999
999
}
1000
1000
1001
1001
/// An iterator over the lines of a string.
@@ -2588,7 +2588,7 @@ impl Default for &mut str {
2588
2588
impl_fn_for_zst ! {
2589
2589
/// A nameable, cloneable fn type
2590
2590
#[ derive( Clone ) ]
2591
- struct LinesAnyMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
2591
+ struct LinesMap impl <' a> Fn = |line: & ' a str | -> & ' a str {
2592
2592
let l = line. len( ) ;
2593
2593
if l > 0 && line. as_bytes( ) [ l - 1 ] == b'\r' { & line[ 0 .. l - 1 ] }
2594
2594
else { line }
You can’t perform that action at this time.
0 commit comments