fix mod/use order

I wish rustfmt could figure this out.
This commit is contained in:
Charles Hall 2024-06-14 20:49:01 -07:00
parent 91739899e7
commit 41c01ad1b7
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF

View file

@ -1,6 +1,3 @@
pub(crate) mod abstraction;
pub(crate) mod key_value;
use std::{ use std::{
collections::{BTreeMap, HashMap, HashSet}, collections::{BTreeMap, HashMap, HashSet},
fs, fs,
@ -10,7 +7,6 @@ use std::{
sync::{Arc, Mutex, RwLock}, sync::{Arc, Mutex, RwLock},
}; };
use abstraction::{KeyValueDatabaseEngine, KvTree};
use lru_cache::LruCache; use lru_cache::LruCache;
use ruma::{ use ruma::{
events::{ events::{
@ -30,6 +26,11 @@ use crate::{
PduEvent, Result, Services, SERVICES, PduEvent, Result, Services, SERVICES,
}; };
pub(crate) mod abstraction;
pub(crate) mod key_value;
use abstraction::{KeyValueDatabaseEngine, KvTree};
pub(crate) struct KeyValueDatabase { pub(crate) struct KeyValueDatabase {
db: Arc<dyn KeyValueDatabaseEngine>, db: Arc<dyn KeyValueDatabaseEngine>,