diff options
| author | Fuwn <[email protected]> | 2020-11-01 00:50:40 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2020-11-01 00:50:40 -0700 |
| commit | d9160764c018bb04878f092b6eff592b63e1b262 (patch) | |
| tree | 5e52b1053ce020d9abfc8ca3434c3dc17d92704f /src/core | |
| parent | feat (desc) (diff) | |
| download | dep-core-next-d9160764c018bb04878f092b6eff592b63e1b262.tar.xz dep-core-next-d9160764c018bb04878f092b6eff592b63e1b262.zip | |
chore: correct punctuation
Diffstat (limited to 'src/core')
| -rw-r--r-- | src/core/api.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/api.rs b/src/core/api.rs index 0d28878..9712ffd 100644 --- a/src/core/api.rs +++ b/src/core/api.rs @@ -146,7 +146,7 @@ pub struct ApiClient { impl ApiClient { pub fn new() -> Self { let client = Client::new(); - let oc_key = env::var("OPENCAGE_KEY").expect("No key for OpenCage in env"); + let oc_key = env::var("OPENCAGE_KEY").expect("Expected key for OpenCage in environment."); let oc_client = Opencage::new(oc_key); ApiClient { client, @@ -157,7 +157,7 @@ impl ApiClient { pub fn stats_update(&self, bot_id: u64, server_count: usize) -> ReqwestResult<ReqwestResponse> { let mut headers = Headers::new(); headers.set(ContentType::json()); - headers.set(Authorization(env::var("DBOTS_TOKEN").expect("No DiscordBots.org token in env"))); + headers.set(Authorization(env::var("DBOTS_TOKEN").expect("Expected DiscordBots.org token in enviroment."))); let mut data = HashMap::new(); data.insert("server_count", server_count); @@ -309,7 +309,7 @@ impl ApiClient { first.components.get("state").unwrap(), first.components.get("country").unwrap() ); - let ds_key = env::var("DARKSKY_KEY").expect("No DarkSky API Key found in env"); + let ds_key = env::var("DARKSKY_KEY").expect("Expected DarkSky API Key in enviroment."); let fc_req = Some(ForecastRequestBuilder::new(ds_key.as_str(), *first.geometry.get("lat").unwrap(), *first.geometry.get("lng").unwrap()) .lang(Lang::English) .units(units) |