aboutsummaryrefslogtreecommitdiff
path: root/cache/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'cache/src/lib.rs')
-rw-r--r--cache/src/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cache/src/lib.rs b/cache/src/lib.rs
index 1154ddf..9dc2f09 100644
--- a/cache/src/lib.rs
+++ b/cache/src/lib.rs
@@ -182,7 +182,7 @@ pub fn cache_memory<Fun, T>(
) -> Result<Arc<T>, anyhow::Error>
where
Fun: FnMut() -> Result<T, anyhow::Error>,
- T: Encode + Decode + Send + Sync + 'static,
+ T: Encode + Decode<()> + Send + Sync + 'static,
{
let (_, location) = cache_location(kind, &key);
{
@@ -238,7 +238,7 @@ pub async fn async_cache_memory<Fun, Fut, T>(
where
Fun: FnOnce() -> Fut,
Fut: Future<Output = Result<T, anyhow::Error>>,
- T: Encode + Decode + Send + Sync + 'static,
+ T: Encode + Decode<()> + Send + Sync + 'static,
{
let (_, location) = cache_location(kind, &key);
{