Skip to content

Commit 025abc8

Browse files
authored
storage: Simplify layout of storage crate (servo#40124)
Due to old design choices, we had the layout of: ``` | - storage | - indexeddb | - mod.rs | - idb_thread.rs | - engines/ | - webstorage | - mod.rs | - webstorage_thread.rs | - engines/ ``` I merged the `*_thread` file into `mod.rs`, since `mod.rs` is pretty empty. This should be a better layout for when more threads are introduced. Testing: Refactor, none needed Signed-off-by: Ashwin Naren <[email protected]>
1 parent b3f13e3 commit 025abc8

File tree

7 files changed

+925
-937
lines changed

7 files changed

+925
-937
lines changed

components/storage/indexeddb/engines/sqlite.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ use storage_traits::indexeddb_thread::{
1818
};
1919
use tokio::sync::oneshot;
2020

21+
use crate::indexeddb::IndexedDBDescription;
2122
use crate::indexeddb::engines::{KvsEngine, KvsTransaction};
22-
use crate::indexeddb::idb_thread::IndexedDBDescription;
2323
use crate::shared::{DB_INIT_PRAGMAS, DB_PRAGMAS};
2424

2525
mod create;

0 commit comments

Comments
 (0)