Skip to content

Commit e64c54d

Browse files
committed
fix: clippy::non-canonical-partial-ord-impl
1 parent 62e03d0 commit e64c54d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stacks-common/src/util/vrf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ impl Eq for VRFPublicKey {}
6868

6969
impl PartialOrd for VRFPublicKey {
7070
fn partial_cmp(&self, other: &VRFPublicKey) -> Option<Ordering> {
71-
Some(self.as_bytes().to_vec().cmp(&other.as_bytes().to_vec()))
71+
Some(self.cmp(other))
7272
}
7373
}
7474

0 commit comments

Comments
 (0)