From 1cf3477adab0f37fd40938a4bc45ded2ec8dea7c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 13 Aug 2025 12:12:00 +0200 Subject: [PATCH] feat(crypto): Implement Default for SecretStorageKey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For the new_without_default clippy lint. Signed-off-by: Kévin Commaille --- crates/matrix-sdk-crypto/src/secret_storage.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/matrix-sdk-crypto/src/secret_storage.rs b/crates/matrix-sdk-crypto/src/secret_storage.rs index efcfdcb58..6c044be07 100644 --- a/crates/matrix-sdk-crypto/src/secret_storage.rs +++ b/crates/matrix-sdk-crypto/src/secret_storage.rs @@ -585,6 +585,12 @@ impl SecretStorageKey { } } +impl Default for SecretStorageKey { + fn default() -> Self { + Self::new() + } +} + #[cfg(test)] mod test { use assert_matches::assert_matches;