From 5dcfec332ce9e003f100b4cf9dec895e5634edc3 Mon Sep 17 00:00:00 2001 From: The8472 Date: Tue, 6 Jul 2021 00:46:40 +0200 Subject: [PATCH] use Eq::eq instead of Iterator::eq implementation --- library/std/src/path.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() } }