File tree 1 file changed +1
-12
lines changed
1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -1405,16 +1405,6 @@ impl<'a> DoubleEndedIterator for LinesAny<'a> {
1405
1405
#[ allow( deprecated) ]
1406
1406
impl < ' a > FusedIterator for LinesAny < ' a > { }
1407
1407
1408
- /*
1409
- Section: Comparing strings
1410
- */
1411
-
1412
- /// Bytewise slice equality
1413
- #[ inline]
1414
- fn eq_slice ( a : & str , b : & str ) -> bool {
1415
- a. as_bytes ( ) == b. as_bytes ( )
1416
- }
1417
-
1418
1408
/*
1419
1409
Section: UTF-8 validation
1420
1410
*/
@@ -1590,7 +1580,6 @@ mod traits {
1590
1580
use cmp:: Ordering ;
1591
1581
use ops;
1592
1582
use slice:: { self , SliceIndex } ;
1593
- use str:: eq_slice;
1594
1583
1595
1584
/// Implements ordering of strings.
1596
1585
///
@@ -1611,7 +1600,7 @@ mod traits {
1611
1600
impl PartialEq for str {
1612
1601
#[ inline]
1613
1602
fn eq ( & self , other : & str ) -> bool {
1614
- eq_slice ( self , other)
1603
+ self . as_bytes ( ) == other. as_bytes ( )
1615
1604
}
1616
1605
#[ inline]
1617
1606
fn ne ( & self , other : & str ) -> bool { !( * self ) . eq ( other) }
You can’t perform that action at this time.
0 commit comments