From 33a15fcd68dffcef713a634f5f0925b413d4f9a8 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 24 Feb 2019 11:05:01 +0100 Subject: No need for static lifetime in const, thanks clippy. --- src/api.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/api.rs') 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("/") -- cgit v1.2.3