mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 16:21:24 +01:00
fix mod/use order
I wish rustfmt could figure this out.
This commit is contained in:
parent
91739899e7
commit
41c01ad1b7
1 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,3 @@
|
|||
pub(crate) mod abstraction;
|
||||
pub(crate) mod key_value;
|
||||
|
||||
use std::{
|
||||
collections::{BTreeMap, HashMap, HashSet},
|
||||
fs,
|
||||
|
|
@ -10,7 +7,6 @@ use std::{
|
|||
sync::{Arc, Mutex, RwLock},
|
||||
};
|
||||
|
||||
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
||||
use lru_cache::LruCache;
|
||||
use ruma::{
|
||||
events::{
|
||||
|
|
@ -30,6 +26,11 @@ use crate::{
|
|||
PduEvent, Result, Services, SERVICES,
|
||||
};
|
||||
|
||||
pub(crate) mod abstraction;
|
||||
pub(crate) mod key_value;
|
||||
|
||||
use abstraction::{KeyValueDatabaseEngine, KvTree};
|
||||
|
||||
pub(crate) struct KeyValueDatabase {
|
||||
db: Arc<dyn KeyValueDatabaseEngine>,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue