Skip to content

Commit e3217a3

Browse files
committed
Remove manual implementation of String::ne
1 parent cdf2321 commit e3217a3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

alloc/src/string.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,10 +2213,6 @@ impl PartialEq for String {
22132213
fn eq(&self, other: &String) -> bool {
22142214
PartialEq::eq(&self[..], &other[..])
22152215
}
2216-
#[inline]
2217-
fn ne(&self, other: &String) -> bool {
2218-
PartialEq::ne(&self[..], &other[..])
2219-
}
22202216
}
22212217

22222218
macro_rules! impl_eq {

0 commit comments

Comments
 (0)