Remove redundant calls to clone

Clippy emits various warnings of form:

  warning: redundant clone

As suggested, remove the redundant calls to `clone`.
This commit is contained in:
Tobin C. Harding 2022-07-20 13:00:10 +10:00
parent 196492554d
commit d1a05401f4
1 changed files with 3 additions and 3 deletions

View File

@ -543,7 +543,7 @@ mod tests {
let xpub: ExtendedPubKey = let xpub: ExtendedPubKey =
"xpub661MyMwAqRbcGoRVtwfvzZsq2VBJR1LAHfQstHUoxqDorV89vRoMxUZ27kLrraAj6MPi\ "xpub661MyMwAqRbcGoRVtwfvzZsq2VBJR1LAHfQstHUoxqDorV89vRoMxUZ27kLrraAj6MPi\
QfrDb27gigC1VS1dBXi5jGpxmMeBXEkKkcXUTg4".parse().unwrap(); QfrDb27gigC1VS1dBXi5jGpxmMeBXEkKkcXUTg4".parse().unwrap();
vec![(xpub, key_source.clone())].into_iter().collect() vec![(xpub, key_source)].into_iter().collect()
}, },
unsigned_tx: { unsigned_tx: {
let mut unsigned = tx.clone(); let mut unsigned = tx.clone();
@ -579,8 +579,8 @@ mod tests {
}], }],
outputs: vec![Output { outputs: vec![Output {
bip32_derivation: keypaths, bip32_derivation: keypaths,
proprietary: proprietary.clone(), proprietary: proprietary,
unknown: unknown.clone(), unknown: unknown,
..Default::default() ..Default::default()
}], }],
}; };