diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2019-02-24 11:05:01 +0100 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2019-02-24 11:05:01 +0100 |
commit | 33a15fcd68dffcef713a634f5f0925b413d4f9a8 (patch) | |
tree | 7098a76b3dd8c2293deb694daa17f83ae6e68546 | |
parent | f08bbe736643beb3953199ae51610d4282d93476 (diff) | |
download | oslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.tar.gz oslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.tar.bz2 oslobike-33a15fcd68dffcef713a634f5f0925b413d4f9a8.zip |
No need for static lifetime in const, thanks clippy.
-rw-r--r-- | src/api.rs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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("/") |