Skip to content

Commit a657645

Browse files
committed
fix: handle clippy error
1 parent 57b5a20 commit a657645

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,7 @@ impl PartialEq for Url {
729729
}
730730

731731
impl PartialOrd for Url {
732-
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> {
733-
self.href().partial_cmp(other.href())
734-
}
732+
fn partial_cmp(&self, other: &Self) -> Option<core::cmp::Ordering> { Some(self.cmp(other)) }
735733
}
736734

737735
impl Ord for Url {

0 commit comments

Comments
 (0)