fix(kvs): fix warnings
This commit is contained in:
parent
3afd0a2605
commit
db0ea18a84
|
@ -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<()>;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user