Remove unnecessary explicit type annotation

The compiler can infer this type, no need for an explicit type
annotation.
This commit is contained in:
Tobin Harding 2022-03-14 13:52:25 +11:00
parent 71cf00a314
commit a77907d59c
1 changed files with 1 additions and 1 deletions

View File

@ -183,7 +183,7 @@ impl PublicKey {
/// Deserialize a public key from a slice
pub fn from_slice(data: &[u8]) -> Result<PublicKey, Error> {
let compressed: bool = match data.len() {
let compressed = match data.len() {
33 => true,
65 => false,
len => {