diff options
author | metamuffin <metamuffin@disroot.org> | 2025-09-06 23:50:51 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-09-06 23:50:51 +0200 |
commit | 356b3b8eebf22083c7d9655bb43e141dd0df732c (patch) | |
tree | 5573ff4290a8d36bb1606562615c3438e3449915 /cache | |
parent | d205173acdd721d581a88fe4788d1ec64b9c2055 (diff) | |
download | jellything-356b3b8eebf22083c7d9655bb43e141dd0df732c.tar jellything-356b3b8eebf22083c7d9655bb43e141dd0df732c.tar.bz2 jellything-356b3b8eebf22083c7d9655bb43e141dd0df732c.tar.zst |
misc changes for current rust nightly
Diffstat (limited to 'cache')
-rw-r--r-- | cache/src/lib.rs | 4 |
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); { |