Skip to content

Commit

Permalink
fix clippy warning
Browse files Browse the repository at this point in the history
  • Loading branch information
callmeclover authored Apr 25, 2024
1 parent 1fd7845 commit 62c87df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static USER_ID: Lazy<Arc<Mutex<i32>>> = Lazy::new(|| Arc::new(Mutex::new(0)));
lazy_static::lazy_static! {
static ref DB_CLIENT: Arc<Mutex<DatabaseConnectix>> = {
tokio::runtime::Runtime::new().unwrap().block_on(async {
return Arc::new(Mutex::new(DatabaseConnectix::new(&std::env::var("DB_URL").unwrap()).unwrap()));
Arc::new(Mutex::new(DatabaseConnectix::new(&std::env::var("DB_URL").unwrap()).unwrap()))
})
};
}
Expand Down

0 comments on commit 62c87df

Please sign in to comment.