Remove manual implementation of String::ne

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

View File

@ -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 {