summaryrefslogtreecommitdiffstats
path: root/vendor/gix-refspec/src/spec.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/gix-refspec/src/spec.rs')
-rw-r--r--vendor/gix-refspec/src/spec.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/vendor/gix-refspec/src/spec.rs b/vendor/gix-refspec/src/spec.rs
index e6e39ddd7..28f63392d 100644
--- a/vendor/gix-refspec/src/spec.rs
+++ b/vendor/gix-refspec/src/spec.rs
@@ -65,13 +65,13 @@ mod impls {
impl PartialOrd for RefSpecRef<'_> {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- self.instruction().partial_cmp(&other.instruction())
+ Some(self.cmp(other))
}
}
impl PartialOrd for RefSpec {
fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
- self.to_ref().partial_cmp(&other.to_ref())
+ Some(self.to_ref().cmp(&other.to_ref()))
}
}