mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 21:06:31 +03:00
Fix Rust 1.57 compiler and clippy warnings (#2863)
* Remove unused os_name * Disable clippy::manual_split_once lint It's suggestions in stable 1.57 Rust are incorrect: https://github.com/rust-lang/rust-clippy/issues/7889 * Allow unused fields in OAuth2 response * Fix clippy warning about `select_pk_for_encryption`
This commit is contained in:
@@ -248,7 +248,7 @@ pub async fn pk_encrypt(
|
||||
let pkeys: Vec<SignedPublicKeyOrSubkey> = public_keys_for_encryption
|
||||
.keys()
|
||||
.iter()
|
||||
.filter_map(|key| select_pk_for_encryption(key))
|
||||
.filter_map(select_pk_for_encryption)
|
||||
.collect();
|
||||
let pkeys_refs: Vec<&SignedPublicKeyOrSubkey> = pkeys.iter().collect();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user