Skip to content

Commit 5155193

Browse files
committed
Remove redundant clone
Clippy emits: warning: redundant clone As suggested, remove redundant call to clone.
1 parent 035ff5b commit 5155193

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/policy/compiler.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -809,9 +809,7 @@ where
809809
insert_wrap!(AstElemExt::terminal(Terminal::True));
810810
}
811811
Concrete::Key(ref pk) => {
812-
insert_wrap!(AstElemExt::terminal(Terminal::PkH(
813-
pk.to_pubkeyhash().clone()
814-
)));
812+
insert_wrap!(AstElemExt::terminal(Terminal::PkH(pk.to_pubkeyhash())));
815813
insert_wrap!(AstElemExt::terminal(Terminal::PkK(pk.clone())));
816814
}
817815
Concrete::After(n) => insert_wrap!(AstElemExt::terminal(Terminal::After(n))),

0 commit comments

Comments
 (0)