diff options
| author | The8472 <git@infinite-source.de> | 2021-07-06 00:46:40 +0200 |
|---|---|---|
| committer | The8472 <git@infinite-source.de> | 2021-07-06 00:46:40 +0200 |
| commit | 5dcfec332ce9e003f100b4cf9dec895e5634edc3 (patch) | |
| tree | f5d2d5f65016904fd3c1ea8fb3f345a6417f42e4 /library/std/src | |
| parent | 6e9b3696d494a32d493585f96f0671123066cd58 (diff) | |
| download | rust-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.rs | 2 |
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() } } |
