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:
		@@ -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(())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user