Skip to content

Commit d1a0540

Browse files
committed
Remove redundant calls to clone
Clippy emits various warnings of form: warning: redundant clone As suggested, remove the redundant calls to `clone`.
1 parent 1964925 commit d1a0540

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/util/psbt/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ mod tests {
543543
let xpub: ExtendedPubKey =
544544
"xpub661MyMwAqRbcGoRVtwfvzZsq2VBJR1LAHfQstHUoxqDorV89vRoMxUZ27kLrraAj6MPi\
545545
QfrDb27gigC1VS1dBXi5jGpxmMeBXEkKkcXUTg4".parse().unwrap();
546-
vec![(xpub, key_source.clone())].into_iter().collect()
546+
vec![(xpub, key_source)].into_iter().collect()
547547
},
548548
unsigned_tx: {
549549
let mut unsigned = tx.clone();
@@ -579,8 +579,8 @@ mod tests {
579579
}],
580580
outputs: vec![Output {
581581
bip32_derivation: keypaths,
582-
proprietary: proprietary.clone(),
583-
unknown: unknown.clone(),
582+
proprietary: proprietary,
583+
unknown: unknown,
584584
..Default::default()
585585
}],
586586
};

0 commit comments

Comments
 (0)