Clippy fixes.
This commit is contained in:
parent
7413b5c062
commit
a439397c62
1 changed files with 13 additions and 15 deletions
|
@ -126,22 +126,20 @@ pub fn get_subkey_by_fingerprint<'a>(
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(Some(validkey))
|
Ok(Some(validkey))
|
||||||
} else {
|
} else if keys.is_empty() {
|
||||||
if keys.len() == 0 {
|
Ok(None)
|
||||||
Ok(None)
|
} else if keys.len() == 2 {
|
||||||
} else if keys.len() == 2 {
|
Err(Error::InternalError(anyhow!(
|
||||||
Err(Error::InternalError(anyhow!(
|
"Found two results for {}, probably the cert has the \
|
||||||
"Found two results for {}, probably the cert has the \
|
|
||||||
primary as a subkey?",
|
primary as a subkey?",
|
||||||
fp
|
fp
|
||||||
)))
|
)))
|
||||||
} else {
|
} else {
|
||||||
Err(Error::InternalError(anyhow!(
|
Err(Error::InternalError(anyhow!(
|
||||||
"Found {} results for (sub)key {}, this is unexpected",
|
"Found {} results for (sub)key {}, this is unexpected",
|
||||||
keys.len(),
|
keys.len(),
|
||||||
fp
|
fp
|
||||||
)))
|
)))
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue