fix fpr parse bug

This commit is contained in:
seu 2018-10-25 17:38:27 +02:00
parent d4fd651ff1
commit 95994bd444
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ impl FromStr for Fingerprint {
type Err = Error;
fn from_str(s: &str) -> Result<Fingerprint> {
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());
}