We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 2fc4935 + e248d0c commit e700d02Copy full SHA for e700d02
library/alloc/src/string.rs
@@ -2213,10 +2213,6 @@ impl PartialEq for String {
2213
fn eq(&self, other: &String) -> bool {
2214
PartialEq::eq(&self[..], &other[..])
2215
}
2216
- #[inline]
2217
- fn ne(&self, other: &String) -> bool {
2218
- PartialEq::ne(&self[..], &other[..])
2219
- }
2220
2221
2222
macro_rules! impl_eq {
library/core/src/str/traits.rs
@@ -28,10 +28,6 @@ impl PartialEq for str {
28
fn eq(&self, other: &str) -> bool {
29
self.as_bytes() == other.as_bytes()
30
31
32
- fn ne(&self, other: &str) -> bool {
33
- !(*self).eq(other)
34
35
36
37
#[stable(feature = "rust1", since = "1.0.0")]
0 commit comments