From bc3f6542f39474565f3e7fbe34b9bab45d46789b Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Thu, 2 Mar 2023 16:32:04 +0100 Subject: [PATCH] Remove manual implementation of str::ne --- library/core/src/str/traits.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/core/src/str/traits.rs b/library/core/src/str/traits.rs index d3ed811b157..68f62ce8be5 100644 --- a/library/core/src/str/traits.rs +++ b/library/core/src/str/traits.rs @@ -28,10 +28,6 @@ impl PartialEq for str { fn eq(&self, other: &str) -> bool { self.as_bytes() == other.as_bytes() } - #[inline] - fn ne(&self, other: &str) -> bool { - !(*self).eq(other) - } } #[stable(feature = "rust1", since = "1.0.0")]