From e248d0c8373d960187c92f7e5a7557410036e77d Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Thu, 2 Mar 2023 16:32:23 +0100 Subject: [PATCH] Remove manual implementation of String::ne --- library/alloc/src/string.rs | 4 ---- 1 file changed, 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 {