fix clippy & rustfmt
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use redis::aio::MultiplexedConnection;
|
||||
use rocket::request::{FromRequest, Outcome, Request};
|
||||
use std::ops::{Deref, DerefMut};
|
||||
use std::env;
|
||||
use std::ops::{Deref, DerefMut};
|
||||
|
||||
pub struct RdsConn(pub MultiplexedConnection);
|
||||
|
||||
@@ -34,7 +34,6 @@ impl DerefMut for RdsConn {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub async fn init_rds_client() -> MultiplexedConnection {
|
||||
let redis_url = env::var("REDIS_URL").expect("REDIS_URL must be set");
|
||||
let client = redis::Client::open(redis_url).expect("connect to redis fail");
|
||||
|
||||
Reference in New Issue
Block a user