Skip to content

Commit af39cbf

Browse files
committed
feat(crypto): BackupDecryptionKey and DehydratedDeviceKey implement Default.
1 parent 110b516 commit af39cbf

File tree

1 file changed

+12
-0
lines changed
  • crates/matrix-sdk-crypto/src/store

1 file changed

+12
-0
lines changed

crates/matrix-sdk-crypto/src/store/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,12 @@ impl BackupDecryptionKey {
754754
}
755755
}
756756

757+
impl Default for BackupDecryptionKey {
758+
fn default() -> Self {
759+
Self::new()
760+
}
761+
}
762+
757763
#[cfg(not(tarpaulin_include))]
758764
impl Debug for BackupDecryptionKey {
759765
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
@@ -812,6 +818,12 @@ impl DehydratedDeviceKey {
812818
}
813819
}
814820

821+
impl Default for DehydratedDeviceKey {
822+
fn default() -> Self {
823+
Self::new()
824+
}
825+
}
826+
815827
impl From<&[u8; 32]> for DehydratedDeviceKey {
816828
fn from(value: &[u8; 32]) -> Self {
817829
DehydratedDeviceKey { inner: Box::new(*value) }

0 commit comments

Comments
 (0)