fix(kvs): fix warnings

This commit is contained in:
Federico Terzi 2021-10-05 23:17:51 +02:00
parent 3afd0a2605
commit db0ea18a84

View File

@ -24,6 +24,7 @@ use serde::{de::DeserializeOwned, Serialize};
mod persistent; mod persistent;
#[allow(clippy::upper_case_acronyms)]
pub trait KVS: Send + Sync + Clone { pub trait KVS: Send + Sync + Clone {
fn get<T: DeserializeOwned>(&self, key: &str) -> Result<Option<T>>; fn get<T: DeserializeOwned>(&self, key: &str) -> Result<Option<T>>;
fn set<T: Serialize>(&self, key: &str, value: T) -> Result<()>; fn set<T: Serialize>(&self, key: &str, value: T) -> Result<()>;