diff --git a/espanso-kvs/src/lib.rs b/espanso-kvs/src/lib.rs index efcad9d..05e5fd4 100644 --- a/espanso-kvs/src/lib.rs +++ b/espanso-kvs/src/lib.rs @@ -24,7 +24,7 @@ use serde::{de::DeserializeOwned, Serialize}; mod persistent; -pub trait KVS: Send + Sync { +pub trait KVS: Send + Sync + Clone { fn get(&self, key: &str) -> Result>; fn set(&self, key: &str, value: T) -> Result<()>; fn delete(&self, key: &str) -> Result<()>;