Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pierre HUBERT 2024-09-09 22:01:29 +02:00
parent d9ae92dbc2
commit 3f42a0d989

View File

@ -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(())
}