diff options
Diffstat (limited to '')
-rw-r--r-- | vendor/semver/src/impls.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/semver/src/impls.rs b/vendor/semver/src/impls.rs index c3b6c6013..cc4fd415f 100644 --- a/vendor/semver/src/impls.rs +++ b/vendor/semver/src/impls.rs @@ -38,13 +38,13 @@ impl Deref for BuildMetadata { impl PartialOrd for Prerelease { fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> { - Some(Ord::cmp(self, rhs)) + Some(self.cmp(rhs)) } } impl PartialOrd for BuildMetadata { fn partial_cmp(&self, rhs: &Self) -> Option<Ordering> { - Some(Ord::cmp(self, rhs)) + Some(self.cmp(rhs)) } } |