Skip to content

Commit f661b82

Browse files
mgoldenbergHywan
authored andcommitted
refactor(indexeddb): rename module (indexeddb_serializer -> serializer)
Signed-off-by: Michael Goldenberg <[email protected]>
1 parent 77ee7f1 commit f661b82

File tree

8 files changed

+9
-11
lines changed

8 files changed

+9
-11
lines changed

crates/matrix-sdk-indexeddb/src/crypto_store/migrations/mod.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ use indexed_db_futures::{prelude::*, web_sys::DomException};
1818
use tracing::info;
1919
use wasm_bindgen::JsValue;
2020

21-
use crate::{
22-
crypto_store::Result, indexeddb_serializer::IndexeddbSerializer, IndexeddbCryptoStoreError,
23-
};
21+
use crate::{crypto_store::Result, serializer::IndexeddbSerializer, IndexeddbCryptoStoreError};
2422

2523
mod old_keys;
2624
mod v0_to_v5;

crates/matrix-sdk-indexeddb/src/crypto_store/migrations/v10_to_v11.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ use crate::crypto_store::{
2323
keys,
2424
migrations::{do_schema_upgrade, old_keys, MigrationDb},
2525
};
26-
use crate::indexeddb_serializer::IndexeddbSerializer;
26+
use crate::serializer::IndexeddbSerializer;
2727

2828
/// Migrate data from `backup_keys.backup_key_v1` to
2929
/// `backup_keys.backup_version_v1`.

crates/matrix-sdk-indexeddb/src/crypto_store/migrations/v5_to_v7.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ use crate::{
3030
migrations::{add_nonunique_index, do_schema_upgrade, old_keys, v7, MigrationDb},
3131
Result,
3232
},
33-
indexeddb_serializer::IndexeddbSerializer,
33+
serializer::IndexeddbSerializer,
3434
IndexeddbCryptoStoreError,
3535
};
3636

crates/matrix-sdk-indexeddb/src/crypto_store/migrations/v7_to_v8.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ use crate::{
2525
migrations::{do_schema_upgrade, old_keys, v7, MigrationDb},
2626
Result,
2727
},
28-
indexeddb_serializer::IndexeddbSerializer,
28+
serializer::IndexeddbSerializer,
2929
IndexeddbCryptoStoreError,
3030
};
3131

crates/matrix-sdk-indexeddb/src/crypto_store/migrations/v8_to_v10.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use crate::{
2929
},
3030
InboundGroupSessionIndexedDbObject, Result,
3131
},
32-
indexeddb_serializer::IndexeddbSerializer,
32+
serializer::IndexeddbSerializer,
3333
IndexeddbCryptoStoreError,
3434
};
3535

crates/matrix-sdk-indexeddb/src/crypto_store/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ use wasm_bindgen::JsValue;
4848
use web_sys::IdbKeyRange;
4949

5050
use crate::crypto_store::migrations::open_and_upgrade_db;
51-
use crate::indexeddb_serializer::{IndexeddbSerializer, IndexeddbSerializerError, MaybeEncrypted};
51+
use crate::serializer::{IndexeddbSerializer, IndexeddbSerializerError, MaybeEncrypted};
5252

5353
mod migrations;
5454

@@ -1780,7 +1780,7 @@ mod unit_tests {
17801780
use ruma::{device_id, room_id, user_id};
17811781

17821782
use super::InboundGroupSessionIndexedDbObject;
1783-
use crate::crypto_store::indexeddb_serializer::{IndexeddbSerializer, MaybeEncrypted};
1783+
use crate::serializer::{IndexeddbSerializer, MaybeEncrypted};
17841784

17851785
#[test]
17861786
fn needs_backup_is_serialized_as_a_u8_in_json() {

crates/matrix-sdk-indexeddb/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@ use thiserror::Error;
66

77
#[cfg(feature = "e2e-encryption")]
88
mod crypto_store;
9-
#[cfg(feature = "e2e-encryption")]
10-
mod indexeddb_serializer;
119
mod safe_encode;
1210
#[cfg(feature = "e2e-encryption")]
1311
mod serialize_bool_for_indexeddb;
12+
#[cfg(feature = "e2e-encryption")]
13+
mod serializer;
1414
#[cfg(feature = "state-store")]
1515
mod state_store;
1616

0 commit comments

Comments
 (0)