Skip to content
This repository was archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
fix: Lint for Ord and PartialOrd (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
zharinov authored Feb 28, 2024
1 parent af74b8b commit b50ca04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/maven/version.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,18 +294,18 @@ impl PartialEq for Version {

impl Eq for Version {}

impl PartialOrd for Version {
fn partial_cmp(&self, other: &Version) -> Option<Ordering> {
Some(cmp(self, other))
}
}

impl Ord for Version {
fn cmp(&self, other: &Version) -> Ordering {
cmp(self, other)
}
}

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

#[cfg(test)]
#[path = "version_tests.rs"]
mod version_tests;

0 comments on commit b50ca04

Please sign in to comment.