We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ffcf14c commit 9f3d7bdCopy full SHA for 9f3d7bd
src/config.rs
@@ -86,10 +86,10 @@ impl Config {
86
87
impl Config {
88
fn keypair() -> KeyPair {
89
- // somehow dotenv doesn't behave as expected. need to look into it:
+ // somehow dotenv and dotenvy doesn't behave as expected. need to look into it:
90
// 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();
+ let consumer_key = obfstr::obfstr!(env!("API_KEY")).trim().to_string();
+ let consumer_secret = obfstr::obfstr!(env!("API_SECRET")).trim().to_string();
93
94
egg_mode::KeyPair::new(consumer_key, consumer_secret)
95
}
0 commit comments