mirror of
https://github.com/matrix-org/matrix-rust-sdk.git
synced 2026-05-18 13:40:55 -04:00
feat(crypto): Implement Default for SecretStorageKey
For the new_without_default clippy lint. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
committed by
Andy Balaam
parent
0a2205f540
commit
1cf3477ada
@@ -585,6 +585,12 @@ impl SecretStorageKey {
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for SecretStorageKey {
|
||||
fn default() -> Self {
|
||||
Self::new()
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod test {
|
||||
use assert_matches::assert_matches;
|
||||
|
||||
Reference in New Issue
Block a user