Skip to content

Commit 1cf3477

Browse files
zecakehandybalaam
authored andcommitted
feat(crypto): Implement Default for SecretStorageKey
For the new_without_default clippy lint. Signed-off-by: Kévin Commaille <[email protected]>
1 parent 0a2205f commit 1cf3477

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

crates/matrix-sdk-crypto/src/secret_storage.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,12 @@ impl SecretStorageKey {
585585
}
586586
}
587587

588+
impl Default for SecretStorageKey {
589+
fn default() -> Self {
590+
Self::new()
591+
}
592+
}
593+
588594
#[cfg(test)]
589595
mod test {
590596
use assert_matches::assert_matches;

0 commit comments

Comments
 (0)