Skip to content

Commit 9994294

Browse files
committed
Remove manual implementation of str::ne
1 parent 79cc6e8 commit 9994294

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

core/src/str/traits.rs

Lines changed: 0 additions & 4 deletions
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)