No clippy warnings anymore!

This commit is contained in:
Hocuri
2025-08-07 16:52:28 +02:00
parent 5da6ca1ec4
commit 3d5e97eced
5 changed files with 25 additions and 18 deletions

View File

@@ -26,7 +26,7 @@ use crate::key::{DcKey, Fingerprint};
#[cfg(test)]
pub(crate) const HEADER_AUTOCRYPT: &str = "autocrypt-prefer-encrypt";
pub const HEADER_SETUPCODE: &str = "passphrase-begin";
pub(crate) const HEADER_SETUPCODE: &str = "passphrase-begin";
/// Preferred symmetric encryption algorithm.
const SYMMETRIC_KEY_ALGORITHM: SymmetricKeyAlgorithm = SymmetricKeyAlgorithm::AES128;
@@ -149,11 +149,6 @@ pub(crate) fn create_keypair(addr: EmailAddress) -> Result<KeyPair> {
Ok(key_pair)
}
#[cfg(feature = "internals")]
pub fn create_dummy_keypair(addr: &str) -> Result<KeyPair> {
create_keypair(EmailAddress::new(addr)?)
}
/// Selects a subkey of the public key to use for encryption.
///
/// Returns `None` if the public key cannot be used for encryption.