mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +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 {
|
fn eq(&self, other: &String) -> bool {
|
||||||
PartialEq::eq(&self[..], &other[..])
|
PartialEq::eq(&self[..], &other[..])
|
||||||
}
|
}
|
||||||
#[inline]
|
|
||||||
fn ne(&self, other: &String) -> bool {
|
|
||||||
PartialEq::ne(&self[..], &other[..])
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
macro_rules! impl_eq {
|
macro_rules! impl_eq {
|
||||||
|
Loading…
Reference in New Issue
Block a user