From 87be58bc2cde2b048d444ba8f9c881bd580109cb Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 5 Sep 2023 17:22:40 +0200 Subject: [PATCH] chore: upgrade some code comments to doc comments in `OngoingMigration` --- crates/matrix-sdk-indexeddb/src/state_store/migrations.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crates/matrix-sdk-indexeddb/src/state_store/migrations.rs b/crates/matrix-sdk-indexeddb/src/state_store/migrations.rs index ef66ef5bd..262a1da62 100644 --- a/crates/matrix-sdk-indexeddb/src/state_store/migrations.rs +++ b/crates/matrix-sdk-indexeddb/src/state_store/migrations.rs @@ -130,14 +130,14 @@ pub async fn upgrade_meta_db( Ok((meta_db, store_cipher)) } -// Helper struct for upgrading the inner DB. +/// Helper struct for upgrading the inner DB. #[derive(Debug, Clone, Default)] pub struct OngoingMigration { - // Names of stores to drop. + /// Names of stores to drop. drop_stores: HashSet<&'static str>, - // Names of stores to create. + /// Names of stores to create. create_stores: HashSet<&'static str>, - // Store name => key-value data to add. + /// Store name => key-value data to add. data: HashMap<&'static str, Vec<(JsValue, JsValue)>>, }