From b0763ade5d16a68654256b4cbfd029210981970d Mon Sep 17 00:00:00 2001 From: Vika Date: Tue, 4 May 2021 21:08:56 +0300 Subject: Fixed Redis tests --- src/database/redis/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/database/redis') diff --git a/src/database/redis/mod.rs b/src/database/redis/mod.rs index 2377fac..faf9c13 100644 --- a/src/database/redis/mod.rs +++ b/src/database/redis/mod.rs @@ -263,7 +263,7 @@ impl Storage for RedisStorage { .take(limit); match std::panic::AssertUnwindSafe(posts.collect::>()).catch_unwind().await { Ok(posts) => feed["children"] = json!(posts), - Err(err) => return Err(StorageError::new(ErrorKind::Other, "Unknown error encountered while assembling feed, see logs for more info")) + Err(_) => return Err(StorageError::new(ErrorKind::Other, "Unknown error encountered while assembling feed, see logs for more info")) } } return Ok(Some(feed)); -- cgit 1.4.1