about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorThe8472 <git@infinite-source.de>2021-07-06 00:46:40 +0200
committerThe8472 <git@infinite-source.de>2021-07-06 00:46:40 +0200
commit5dcfec332ce9e003f100b4cf9dec895e5634edc3 (patch)
treef5d2d5f65016904fd3c1ea8fb3f345a6417f42e4 /library/std/src
parent6e9b3696d494a32d493585f96f0671123066cd58 (diff)
downloadrust-5dcfec332ce9e003f100b4cf9dec895e5634edc3.tar.gz
rust-5dcfec332ce9e003f100b4cf9dec895e5634edc3.zip
use Eq::eq instead of Iterator::eq implementation
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/path.rs2
1 files changed, 1 insertions, 1 deletions
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()
     }
 }