From c5654c7ae050d8d7f7db38e83daf58668d9a3e33 Mon Sep 17 00:00:00 2001 From: Marc Planard Date: Sun, 4 Jun 2023 12:56:24 +0200 Subject: [PATCH] make clippy happy --- src/redis_ctrl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/redis_ctrl.rs b/src/redis_ctrl.rs index 5653a0d..4b123ca 100644 --- a/src/redis_ctrl.rs +++ b/src/redis_ctrl.rs @@ -51,9 +51,9 @@ pub struct RedisCtrl { impl RedisCtrl { pub fn new() -> Result> { let client = Client::open("redis://127.0.0.1/") - .map_err(| err | LJError::RedisConnect(err))?; + .map_err(LJError::RedisConnect)?; let connection = client.get_connection() - .map_err(| err | LJError::RedisConnect(err))?; + .map_err(LJError::RedisConnect)?; Ok(RedisCtrl { client, connection }) }