Remove redundant calls to clone

No need to clone copy types, found by clippy.
This commit is contained in:
Tobin Harding committed 2021-02-24 13:30:46 +11:00
1 parent 3a0a1e6d4a
commit 0e99d02fbe
4 files changed
+10 -13

No files matched your search

+2 -2
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))
);
}