Skip to content

Commit

Permalink
use cmp for partial cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Nov 29, 2023
1 parent 2e75d77 commit 43b2580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/value.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub struct Value {

impl PartialOrd for Value {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.key.partial_cmp(&other.key)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit 43b2580

Please sign in to comment.