Skip to content

Commit d7d4e30

Browse files
committed
Fix clippy warnings.
1 parent 577fa0e commit d7d4e30

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aggligator/src/control.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ impl<TX, RX, TAG> Eq for Control<TX, RX, TAG> {}
180180

181181
impl<TX, RX, TAG> PartialOrd for Control<TX, RX, TAG> {
182182
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
183-
self.conn_id.partial_cmp(&other.conn_id)
183+
Some(self.cmp(other))
184184
}
185185
}
186186

@@ -486,7 +486,7 @@ impl<TAG> Eq for Link<TAG> {}
486486

487487
impl<TAG> PartialOrd for Link<TAG> {
488488
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
489-
(&self.conn_id, &self.link_id).partial_cmp(&(&other.conn_id, &other.link_id))
489+
Some(self.cmp(other))
490490
}
491491
}
492492

0 commit comments

Comments
 (0)