make clippy happy
This commit is contained in:
parent
ec15004085
commit
c5654c7ae0
1 changed files with 2 additions and 2 deletions
|
|
@ -51,9 +51,9 @@ pub struct RedisCtrl {
|
|||
impl RedisCtrl {
|
||||
pub fn new() -> Result<Self, Box<dyn std::error::Error>> {
|
||||
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 })
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue