about summary refs log tree commit diff
path: root/src/database/redis/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/redis/mod.rs')
-rw-r--r--src/database/redis/mod.rs2
1 files changed, 1 insertions, 1 deletions
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::<Vec<serde_json::Value>>()).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));