use Eq::eq instead of Iterator::eq implementation
This commit is contained in:
parent
6e9b3696d4
commit
5dcfec332c
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue