Fix cargo clippy issue
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d9ae92dbc2
commit
3f42a0d989
@ -45,14 +45,14 @@ where
|
|||||||
{
|
{
|
||||||
let value_str = serde_json::to_string(value)?;
|
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(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Remove a value from Redis
|
/// Remove a value from Redis
|
||||||
pub async fn remove_value(key: &str) -> anyhow::Result<()> {
|
pub async fn remove_value(key: &str) -> anyhow::Result<()> {
|
||||||
execute_request(|conn| Ok(conn.del(key)?))?;
|
execute_request(|conn| Ok(conn.del::<_, ()>(key)?))?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user