Remove manual implementation of str::ne
This commit is contained in:
parent
f715e430aa
commit
bc3f6542f3
1 changed files with 0 additions and 4 deletions
|
@ -28,10 +28,6 @@ impl PartialEq for str {
|
||||||
fn eq(&self, other: &str) -> bool {
|
fn eq(&self, other: &str) -> bool {
|
||||||
self.as_bytes() == other.as_bytes()
|
self.as_bytes() == other.as_bytes()
|
||||||
}
|
}
|
||||||
#[inline]
|
|
||||||
fn ne(&self, other: &str) -> bool {
|
|
||||||
!(*self).eq(other)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "rust1", since = "1.0.0")]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue