diff --git a/library/std/src/path.rs b/library/std/src/path.rs index c71751efb9f..e75d1d38f8f 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -2686,7 +2686,7 @@ impl fmt::Display for Display<'_> { impl cmp::PartialEq for Path { #[inline] fn eq(&self, other: &Path) -> bool { - self.components().eq(other.components()) + self.components() == other.components() } }