about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2023-03-02 16:32:23 +0100
committerKonrad Borowski <konrad@borowski.pw>2023-03-02 16:32:23 +0100
commite248d0c8373d960187c92f7e5a7557410036e77d (patch)
tree004b945dd05ff2287e100f90d84393aeacb8dbab
parentbc3f6542f39474565f3e7fbe34b9bab45d46789b (diff)
downloadrust-e248d0c8373d960187c92f7e5a7557410036e77d.tar.gz
rust-e248d0c8373d960187c92f7e5a7557410036e77d.zip
Remove manual implementation of String::ne
-rw-r--r--library/alloc/src/string.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs
index 2b843647dd5..c7e7ed3e95e 100644
--- a/library/alloc/src/string.rs
+++ b/library/alloc/src/string.rs
@@ -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 {