diff --git a/src/store/fst.rs b/src/store/fst.rs index 5b3d378..fd7ea6e 100644 --- a/src/store/fst.rs +++ b/src/store/fst.rs @@ -687,7 +687,7 @@ impl StoreFSTPool { ); // Proceed temporary FST to final FST path rename - if std::fs::rename(&bucket_tmp_path, &bucket_final_path).is_ok() { + if fs::rename(&bucket_tmp_path, &bucket_final_path).is_ok() { info!("done consolidate fst at path: {:?}", bucket_final_path); } else { error!( diff --git a/src/store/generic.rs b/src/store/generic.rs index 70dd27d..3d00c79 100644 --- a/src/store/generic.rs +++ b/src/store/generic.rs @@ -11,8 +11,6 @@ use std::fmt::Display; use std::sync::{Arc, RwLock}; use std::time::{Duration, SystemTime}; -pub trait StoreGenericKey {} - pub trait StoreGeneric { fn ref_last_used(&self) -> &RwLock; }