Skip to content

Commit 9f3d7bd

Browse files
committed
fix env again
1 parent ffcf14c commit 9f3d7bd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/config.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ impl Config {
8686

8787
impl Config {
8888
fn keypair() -> KeyPair {
89-
// somehow dotenv doesn't behave as expected. need to look into it:
89+
// somehow dotenv and dotenvy doesn't behave as expected. need to look into it:
9090
// https://github.com/dotenv-rs/dotenv/issues/71
91-
let consumer_key = obfstr::obfstr!(dotenv!("API_KEY")).trim().to_string();
92-
let consumer_secret = obfstr::obfstr!(dotenv!("API_SECRET")).trim().to_string();
91+
let consumer_key = obfstr::obfstr!(env!("API_KEY")).trim().to_string();
92+
let consumer_secret = obfstr::obfstr!(env!("API_SECRET")).trim().to_string();
9393

9494
egg_mode::KeyPair::new(consumer_key, consumer_secret)
9595
}

0 commit comments

Comments
 (0)