Clippy fixes.
This commit is contained in:
parent
7413b5c062
commit
a439397c62
1 changed files with 13 additions and 15 deletions
|
@ -126,8 +126,7 @@ pub fn get_subkey_by_fingerprint<'a>(
|
|||
}
|
||||
|
||||
Ok(Some(validkey))
|
||||
} else {
|
||||
if keys.len() == 0 {
|
||||
} else if keys.is_empty() {
|
||||
Ok(None)
|
||||
} else if keys.len() == 2 {
|
||||
Err(Error::InternalError(anyhow!(
|
||||
|
@ -143,7 +142,6 @@ pub fn get_subkey_by_fingerprint<'a>(
|
|||
)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// Produce an armored signature from `input` and a Signer `s`.
|
||||
pub fn sign_helper<S>(s: S, input: &mut dyn io::Read) -> Result<String>
|
||||
|
|
Loading…
Reference in a new issue