File tree Expand file tree Collapse file tree 3 files changed +10
-0
lines changed
crates/matrix-sdk-indexeddb/src Expand file tree Collapse file tree 3 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ pub use error::IndexeddbEventCacheStoreError;
35
35
/// contexts.
36
36
///
37
37
/// [1]: matrix_sdk_base::event_cache::store::EventCacheStore
38
+ #[ derive( Debug ) ]
38
39
pub struct IndexeddbEventCacheStore {
39
40
// A handle to the IndexedDB database
40
41
inner : IdbDatabase ,
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ impl<T> From<serde_wasm_bindgen::Error> for IndexeddbEventCacheStoreSerializerEr
52
52
/// [`EventCacheStore`][1].
53
53
///
54
54
/// [1]: matrix_sdk_base::event_cache::store::EventCacheStore
55
+ #[ derive( Debug ) ]
55
56
pub struct IndexeddbEventCacheStoreSerializer {
56
57
inner : IndexeddbSerializer ,
57
58
}
Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ pub struct IndexeddbSerializer {
39
39
store_cipher : Option < Arc < StoreCipher > > ,
40
40
}
41
41
42
+ impl std:: fmt:: Debug for IndexeddbSerializer {
43
+ fn fmt ( & self , f : & mut std:: fmt:: Formatter < ' _ > ) -> std:: fmt:: Result {
44
+ f. debug_struct ( "IndexeddbSerializer" )
45
+ . field ( "store_cipher" , & self . store_cipher . as_ref ( ) . map ( |_| "<StoreCipher>" ) )
46
+ . finish ( )
47
+ }
48
+ }
49
+
42
50
#[ derive( Debug , thiserror:: Error ) ]
43
51
pub enum IndexeddbSerializerError {
44
52
#[ error( transparent) ]
You can’t perform that action at this time.
0 commit comments