diff --git a/src/stores/disk.rs b/src/stores/disk.rs index f32453d..a6f5fc4 100644 --- a/src/stores/disk.rs +++ b/src/stores/disk.rs @@ -6,7 +6,7 @@ use serde::Serialize; use sled::Db; use std::marker::PhantomData; use std::path::Path; -use std::{fmt::Display, path::PathBuf, time::SystemTime}; +use std::{path::PathBuf, time::SystemTime}; pub struct DiskCacheBuilder { seconds: Option, @@ -36,7 +36,7 @@ const DISK_FILE_VERSION: u64 = 1; impl DiskCacheBuilder where - K: Display, + K: ToString, V: Serialize + DeserializeOwned, { /// Initialize a `DiskCacheBuilder` @@ -158,7 +158,7 @@ pub struct DiskCache { impl DiskCache where - K: Display, + K: ToString, V: Serialize + DeserializeOwned, { #[allow(clippy::new_ret_no_self)] @@ -235,7 +235,7 @@ impl CachedDiskValue { impl IOCached for DiskCache where - K: Display, + K: ToString, V: Serialize + DeserializeOwned, { type Error = DiskCacheError;