Skip to content

Commit

Permalink
fix: make clippy happy about PartialOrd impls
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe committed Oct 17, 2023
1 parent bcce967 commit f897e3b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions src/server/actix_server/hpo_omims.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,7 @@ impl Eq for ResultEntry {}

impl PartialOrd for ResultEntry {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
match self.omim_id.partial_cmp(&other.omim_id) {
Some(core::cmp::Ordering::Equal) => {}
ord => return ord,
}
self.name.partial_cmp(&other.name)
Some(self.cmp(other))
}
}

Expand Down
6 changes: 1 addition & 5 deletions src/server/actix_server/hpo_terms.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,7 @@ impl Eq for ResultEntry {}

impl PartialOrd for ResultEntry {
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
match self.term_id.partial_cmp(&other.term_id) {
Some(core::cmp::Ordering::Equal) => {}
ord => return ord,
}
self.name.partial_cmp(&other.name)
Some(self.cmp(other))
}
}

Expand Down

0 comments on commit f897e3b

Please sign in to comment.