Remove redundant calls to clone

No need to clone copy types, found by clippy.
This commit is contained in:
Tobin Harding
2020-12-23 13:42:52 +11:00
parent 3a0a1e6d4a
commit 0e99d02fbe
4 changed files with 10 additions and 13 deletions

View File

@@ -227,7 +227,7 @@ pub mod test {
);
assert_eq!(
tree.get_path_from_script_pubkey(&script).unwrap(),
Some((keychain, path.clone()))
Some((keychain, path))
);
}
@@ -256,7 +256,7 @@ pub mod test {
);
assert_eq!(
tree.get_path_from_script_pubkey(&script).unwrap(),
Some((keychain, path.clone()))
Some((keychain, path))
);
}