refactor: remove Aheader::new

This commit is contained in:
link2xt
2025-09-02 19:15:48 +00:00
committed by l
parent bed1623dcb
commit 4033566b4a
3 changed files with 25 additions and 38 deletions

View File

@@ -1092,13 +1092,13 @@ impl MimeFactory {
continue;
}
let header = Aheader::new(
addr.clone(),
key.clone(),
let header = Aheader {
addr: addr.clone(),
public_key: key.clone(),
// Autocrypt 1.1.0 specification says that
// `prefer-encrypt` attribute SHOULD NOT be included.
EncryptPreference::NoPreference,
)
prefer_encrypt: EncryptPreference::NoPreference,
}
.to_string();
message = message.header(