Remove manual implementation of str::ne

This commit is contained in:
Konrad Borowski 2023-03-02 16:32:04 +01:00
parent f715e430aa
commit bc3f6542f3

View file

@ -28,10 +28,6 @@ impl PartialEq for str {
fn eq(&self, other: &str) -> bool {
self.as_bytes() == other.as_bytes()
}
#[inline]
fn ne(&self, other: &str) -> bool {
!(*self).eq(other)
}
}
#[stable(feature = "rust1", since = "1.0.0")]