From 356b3b8eebf22083c7d9655bb43e141dd0df732c Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sat, 6 Sep 2025 23:50:51 +0200 Subject: misc changes for current rust nightly --- cache/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cache') 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( ) -> Result, anyhow::Error> where Fun: FnMut() -> Result, - 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( where Fun: FnOnce() -> Fut, Fut: Future>, - T: Encode + Decode + Send + Sync + 'static, + T: Encode + Decode<()> + Send + Sync + 'static, { let (_, location) = cache_location(kind, &key); { -- cgit v1.2.3-70-g09d2