From a6026bdc148fb42fa5e7d7493a01bc40c4e1aa01 Mon Sep 17 00:00:00 2001 From: fangpin Date: Tue, 26 Nov 2024 13:57:12 +0800 Subject: [PATCH] chore: use type alias memtable in memory_engine Signed-off-by: fangpin --- crates/engine/src/memory_engine/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/engine/src/memory_engine/mod.rs b/crates/engine/src/memory_engine/mod.rs index da10b818f..f8372b3e2 100644 --- a/crates/engine/src/memory_engine/mod.rs +++ b/crates/engine/src/memory_engine/mod.rs @@ -37,7 +37,7 @@ impl MemoryEngine { /// New `MemoryEngine` #[inline] pub(crate) fn new(tables: &[&'static str]) -> Self { - let mut inner: HashMap, Vec>> = HashMap::new(); + let mut inner: HashMap = HashMap::new(); for table in tables { let _ignore = inner.entry((*table).to_owned()).or_default(); } @@ -49,7 +49,7 @@ impl MemoryEngine { /// New `MemoryEngine` #[cfg(madsim)] #[inline] - pub(crate) fn new_from_db(db: HashMap, Vec>>) -> Self { + pub(crate) fn new_from_db(db: HashMap) -> Self { Self { inner: Arc::new(RwLock::new(db)), }