From c92b9464937c552b357bf7790bf094c3324d0ca4 Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Tue, 22 Dec 2020 14:10:46 +1100 Subject: [PATCH] Remove unnecessary clone Type is `Copy`, no need for clone. --- src/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/key.rs b/src/key.rs index 460f27c..abcd9a7 100644 --- a/src/key.rs +++ b/src/key.rs @@ -796,7 +796,7 @@ mod test { let pk1 = PublicKey::from_slice( &hex!("0241cc121c419921942add6db6482fb36243faf83317c866d2a28d8c6d7089f7ba"), ).unwrap(); - let pk2 = pk1.clone(); + let pk2 = pk1; let pk3 = PublicKey::from_slice( &hex!("02e6642fd69bd211f93f7f1f36ca51a26a5290eb2dd1b0d8279a87bb0d480c8443"), ).unwrap();