mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-30 23:03:06 +03:00
use Eq::eq instead of Iterator::eq implementation
This commit is contained in:
@@ -2686,7 +2686,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
impl cmp::PartialEq for Path {
|
||||
#[inline]
|
||||
fn eq(&self, other: &Path) -> bool {
|
||||
self.components().eq(other.components())
|
||||
self.components() == other.components()
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user