Changed std::env::var(
This commit is contained in:
parent
40098478b9
commit
5b8e7de9f1
@ -13,8 +13,8 @@ async fn main() {
|
||||
client_options.app_name = Some("My App".to_string());
|
||||
|
||||
let credential_builder = Credential::builder()
|
||||
.username(Some(std::env::var("mongo_username").unwrap()))
|
||||
.password(Some(std::env::var("mongo_password").unwrap()));
|
||||
.username(String::from(env!("mongo_username")))
|
||||
.password(String::from(env!("mongo_password")));
|
||||
|
||||
client_options.credential = Some(credential_builder.build());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user