Skip to content

Commit a7d5a3b

Browse files
committed
Clippy fixes
1 parent 88e1e23 commit a7d5a3b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/sidekiq/mod.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ pub fn create_redis_pool() -> Result<ConnectionManager, ClientError> {
3636
}
3737

3838
pub async fn create_async_redis_pool() -> Result<ConnectionManager, ClientError> {
39-
let redis_url =
40-
&env::var(&REDIS_URL_ENV.to_owned()).unwrap_or_else(|_| REDIS_URL_DEFAULT.to_owned());
39+
let redis_url = &env::var(REDIS_URL_ENV).unwrap_or_else(|_| REDIS_URL_DEFAULT.to_owned());
4140
// Note: this connection is multiplexed. Users of this object will call clone(), but the same underlying connection will be used.
4241
// https://docs.rs/redis/latest/redis/aio/struct.ConnectionManager.html
4342
match ConnectionManager::new(redis::Client::open((*redis_url).clone()).unwrap()).await {

0 commit comments

Comments
 (0)