From 95994bd444f2fc55e5c3c2df7f1605cc1a222d96 Mon Sep 17 00:00:00 2001 From: seu Date: Thu, 25 Oct 2018 17:38:27 +0200 Subject: [PATCH] fix fpr parse bug --- src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.rs b/src/types.rs index e6e0fa4..94b2d84 100644 --- a/src/types.rs +++ b/src/types.rs @@ -59,7 +59,7 @@ impl FromStr for Fingerprint { type Err = Error; fn from_str(s: &str) -> Result { - if !s.starts_with("0x") || s.len() != 20 + 2 { + if !s.starts_with("0x") || s.len() != 40 + 2 { return Err(format!("'{}' is not a valid fingerprint", s).into()); }