make clippy happy
This commit is contained in:
parent
ec15004085
commit
c5654c7ae0
@ -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…
Reference in New Issue
Block a user