mirror of
https://github.com/rust-lang/rust
synced 2024-10-17 05:53:41 +00:00
Remove manual implementation of String::ne
This commit is contained in:
parent
bc3f6542f3
commit
e248d0c837
|
@ -2213,10 +2213,6 @@ impl PartialEq for String {
|
|||
fn eq(&self, other: &String) -> bool {
|
||||
PartialEq::eq(&self[..], &other[..])
|
||||
}
|
||||
#[inline]
|
||||
fn ne(&self, other: &String) -> bool {
|
||||
PartialEq::ne(&self[..], &other[..])
|
||||
}
|
||||
}
|
||||
|
||||
macro_rules! impl_eq {
|
||||
|
|
Loading…
Reference in a new issue