aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-02-23 16:26:50 +0100
committerHarald Eilertsen <haraldei@anduin.net>2019-02-23 16:26:50 +0100
commit85f2f37d779e70811fe6478514b92b76c80a69ce (patch)
tree1e7a6547c732533db737379aa75cc95eb23712aa
parent5c87f3368b174f8e8525f6a522fbaa07e03c98f5 (diff)
downloadoslobike-85f2f37d779e70811fe6478514b92b76c80a69ce.tar.gz
oslobike-85f2f37d779e70811fe6478514b92b76c80a69ce.tar.bz2
oslobike-85f2f37d779e70811fe6478514b92b76c80a69ce.zip
Drop api_key from Api, not really needed.
-rw-r--r--src/lib.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs
index c65fce1..f67408d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -25,7 +25,6 @@ fn url_for(endpoint: &str) -> String {
}
pub struct Api {
- api_key: String,
client: reqwest::Client,
}
@@ -38,7 +37,7 @@ impl Api {
.default_headers(hdrs)
.build().unwrap();
- Api { api_key, client }
+ Api { client }
}
pub fn stations(&self) -> String {