From c5ef5337bfaecbcbca7b12a9c179806f3c29dab3 Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Sat, 26 Jun 2021 19:48:54 +0200 Subject: [PATCH] feat(kvs): improve KVS trait signature --- espanso-kvs/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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<()>;