Skip to content

Commit bc3f654

Browse files
Remove manual implementation of str::ne
1 parent f715e43 commit bc3f654

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/core/src/str/traits.rs

-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ impl PartialEq for str {
2828
fn eq(&self, other: &str) -> bool {
2929
self.as_bytes() == other.as_bytes()
3030
}
31-
#[inline]
32-
fn ne(&self, other: &str) -> bool {
33-
!(*self).eq(other)
34-
}
3531
}
3632

3733
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)