identifiers: Fix clippy lint

This commit is contained in:
Jonas Platte 2023-08-24 15:37:05 +02:00
parent b6f915b480
commit 9009ec6c3e
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C

View File

@ -37,7 +37,7 @@ impl<E: Ord, K: ?Sized> Signatures<E, K> {
key_identifier: OwnedSigningKeyId<K>, key_identifier: OwnedSigningKeyId<K>,
value: String, value: String,
) -> Option<String> { ) -> Option<String> {
self.0.entry(entity).or_insert_with(Default::default).insert(key_identifier, value) self.0.entry(entity).or_default().insert(key_identifier, value)
} }
/// Returns a reference to the signatures corresponding to the entities. /// Returns a reference to the signatures corresponding to the entities.