From d0fc16dde4cf1c58769dfff058509677f601eb8e Mon Sep 17 00:00:00 2001 From: alyx Date: Wed, 9 Aug 2023 15:04:41 -0400 Subject: config done --- src/cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/cache.rs') diff --git a/src/cache.rs b/src/cache.rs index 9089ff1..482a9b8 100644 --- a/src/cache.rs +++ b/src/cache.rs @@ -1,5 +1,5 @@ use std::{future::Future, time::*, collections::HashMap, hash::Hash}; - +#[derive(Debug)] pub struct AsyncCache { func: F, cache: HashMap, @@ -12,7 +12,7 @@ where K: Hash + PartialEq + Eq + Clone, Fut: Future> { - pub fn new(interval: Duration, mut func: F) -> Self { + pub fn new(interval: Duration, func: F) -> Self { Self{ cache: HashMap::new(), interval, func -- cgit v1.2.3-54-g00ecf