From a77907d59c00d2c879461e41b537227696fc610b Mon Sep 17 00:00:00 2001 From: Tobin Harding Date: Mon, 14 Mar 2022 13:52:25 +1100 Subject: [PATCH] Remove unnecessary explicit type annotation The compiler can infer this type, no need for an explicit type annotation. --- src/util/key.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/key.rs b/src/util/key.rs index 25eb434c..fa92e460 100644 --- a/src/util/key.rs +++ b/src/util/key.rs @@ -183,7 +183,7 @@ impl PublicKey { /// Deserialize a public key from a slice pub fn from_slice(data: &[u8]) -> Result { - let compressed: bool = match data.len() { + let compressed = match data.len() { 33 => true, 65 => false, len => {