Skip to content

Commit 7dd2d7a

Browse files
refactor: dot notation for dotenv_vars
1 parent 2d4d883 commit 7dd2d7a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ fn main() {
1010
// dotenvy iterator returns result, unwrap to get the value, map
1111
// extracts the value from the result, and collect key/value
1212
// pairs into a vector
13-
let dotenv_vars: Vec<_> = dotenvy::dotenv_iter().unwrap().map(|x| x.unwrap()).collect();
13+
let dotenv_vars:
14+
Vec<_> = dotenvy::dotenv_iter()
15+
.unwrap()
16+
.map(|x| x.unwrap())
17+
.collect();
1418

1519
// Print env vars to stdout
1620
match dotenv() {

0 commit comments

Comments
 (0)