Remove unnecessary closure

We can just pass the function directly. Found by clippy bizarrely after
running `rustfmt` (in bot-created PR #4586).

Internal change only, no logic change.
This commit is contained in:
Tobin C. Harding 2025-06-04 07:36:52 +01:00
parent a419fc9aa6
commit a1e8fabbbe
No known key found for this signature in database
GPG Key ID: 0AEF0A899E41F7DD
1 changed files with 1 additions and 3 deletions

View File

@ -187,9 +187,7 @@ impl Serialize for Vec<secp256k1::PublicKey> {
impl Deserialize for Vec<secp256k1::PublicKey> {
fn deserialize(bytes: &[u8]) -> Result<Self, Error> {
bytes.chunks(secp256k1::constants::PUBLIC_KEY_SIZE)
.map(|pubkey_bytes| {
secp256k1::PublicKey::deserialize(pubkey_bytes)
})
.map(secp256k1::PublicKey::deserialize)
.collect()
}
}