Skip to content

Commit

Permalink
switch ord to match
Browse files Browse the repository at this point in the history
  • Loading branch information
Eh2406 committed Dec 11, 2024
1 parent 0772d51 commit 0af0981
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cargo/core/resolver/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,9 @@ impl std::hash::Hash for ActivationsKey {
/// same.
#[derive(Clone, Copy, Eq, PartialEq, Hash, Debug, PartialOrd, Ord)]
pub enum SemverCompatibility {
Major(NonZeroU64),
Minor(NonZeroU64),
Patch(u64),
Minor(NonZeroU64),
Major(NonZeroU64),
}

impl From<&semver::Version> for SemverCompatibility {
Expand Down

0 comments on commit 0af0981

Please sign in to comment.