Skip to content

Commit 5dcfec3

Browse files
committed
use Eq::eq instead of Iterator::eq implementation
1 parent 6e9b369 commit 5dcfec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/std/src/path.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2686,7 +2686,7 @@ impl fmt::Display for Display<'_> {
26862686
impl cmp::PartialEq for Path {
26872687
#[inline]
26882688
fn eq(&self, other: &Path) -> bool {
2689-
self.components().eq(other.components())
2689+
self.components() == other.components()
26902690
}
26912691
}
26922692

0 commit comments

Comments
 (0)