mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-12 20:16:49 +00:00
use Eq::eq instead of Iterator::eq implementation
This commit is contained in:
parent
6e9b3696d4
commit
5dcfec332c
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user