Skip to content

Commit 749dc77

Browse files
committed
Use .is_err()
1 parent 3d6cd96 commit 749dc77

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ pub struct Main {
6969

7070
#[tokio::main]
7171
async fn main() {
72-
if let Err(_) = dotenvy::dotenv() {
72+
if dotenvy::dotenv().is_err() {
7373
info!("No .env file found, using only environment variables")
7474
}
7575

0 commit comments

Comments
 (0)