From f72a24578ccc7b8c14bc5ddf385dc27564714060 Mon Sep 17 00:00:00 2001 From: Diptesh Choudhuri Date: Thu, 6 Jun 2024 18:31:42 +0530 Subject: [PATCH] chore: replace display with to_string --- src/stores/disk.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;