Skip to content

Commit e248d0c

Browse files
Remove manual implementation of String::ne
1 parent bc3f654 commit e248d0c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

library/alloc/src/string.rs

-4
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)