Skip to content

Commit 9003593

Browse files
committed
clippy: a couple more lints
TBH I had thought we'd fixed these years ago..
1 parent 46e9dc1 commit 9003593

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/descriptor/key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ impl<K: InnerXKey> DescriptorXKey<K> {
12051205
if &compare_fingerprint == fingerprint
12061206
&& compare_path
12071207
.into_iter()
1208-
.eq(path_excluding_wildcard.into_iter())
1208+
.eq(&path_excluding_wildcard)
12091209
{
12101210
Some(path_excluding_wildcard)
12111211
} else {

src/miniscript/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,7 @@ impl<Ctx: ScriptContext> Miniscript<Ctx::Key, Ctx> {
604604
/// The type information and extra properties are implied by the AST.
605605
impl<Pk: MiniscriptKey, Ctx: ScriptContext> PartialOrd for Miniscript<Pk, Ctx> {
606606
fn partial_cmp(&self, other: &Miniscript<Pk, Ctx>) -> Option<cmp::Ordering> {
607-
Some(self.node.cmp(&other.node))
607+
Some(self.cmp(other))
608608
}
609609
}
610610

0 commit comments

Comments
 (0)