aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2019-02-24 11:05:01 +0100
committerHarald Eilertsen <haraldei@anduin.net>2019-02-24 11:05:01 +0100
commit33a15fcd68dffcef713a634f5f0925b413d4f9a8 (patch)
tree7098a76b3dd8c2293deb694daa17f83ae6e68546
parentf08bbe736643beb3953199ae51610d4282d93476 (diff)
downloadoslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.tar.gz
oslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.tar.bz2
oslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.zip
No need for static lifetime in const, thanks clippy.
-rw-r--r--src/api.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/api.rs b/src/api.rs
index b0b89cf..106676a 100644
--- a/src/api.rs
+++ b/src/api.rs
@@ -32,7 +32,7 @@ use crate::station::{
};
use crate::error::ApiResult;
-const API_BASE: &'static str = "https://oslobysykkel.no/api/v1";
+const API_BASE: &str = "https://oslobysykkel.no/api/v1";
fn url_for(endpoint: &str) -> String {
[API_BASE, endpoint].join("/")