From 3f42a0d989c6761b88e9a90f1dd38627b2bfa084 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Mon, 9 Sep 2024 22:01:29 +0200 Subject: [PATCH] Fix cargo clippy issue --- geneit_backend/src/connections/redis_connection.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geneit_backend/src/connections/redis_connection.rs b/geneit_backend/src/connections/redis_connection.rs index aa201d7..782fe9f 100644 --- a/geneit_backend/src/connections/redis_connection.rs +++ b/geneit_backend/src/connections/redis_connection.rs @@ -45,14 +45,14 @@ where { let value_str = serde_json::to_string(value)?; - execute_request(|conn| Ok(conn.set_ex(key, value_str, lifetime.as_secs())?))?; + execute_request(|conn| Ok(conn.set_ex::<_, _, ()>(key, value_str, lifetime.as_secs())?))?; Ok(()) } /// Remove a value from Redis pub async fn remove_value(key: &str) -> anyhow::Result<()> { - execute_request(|conn| Ok(conn.del(key)?))?; + execute_request(|conn| Ok(conn.del::<_, ()>(key)?))?; Ok(()) }