We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e6218c commit 6d42b58Copy full SHA for 6d42b58
src/descriptor/tr.rs
@@ -91,11 +91,7 @@ impl<Pk: MiniscriptKey> Eq for Tr<Pk> {}
91
92
impl<Pk: MiniscriptKey> PartialOrd for Tr<Pk> {
93
fn partial_cmp(&self, other: &Self) -> Option<cmp::Ordering> {
94
- match self.internal_key.partial_cmp(&other.internal_key) {
95
- Some(cmp::Ordering::Equal) => {}
96
- ord => return ord,
97
- }
98
- self.tree.partial_cmp(&other.tree)
+ Some(self.cmp(other))
99
}
100
101
0 commit comments