cargo clippy

This commit is contained in:
Pierre HUBERT 2022-04-08 18:54:22 +02:00
parent 7978706803
commit 51e52e5ed7

View File

@ -47,7 +47,7 @@ impl AppConfig {
} }
pub fn full_url(&self, uri: &str) -> String { pub fn full_url(&self, uri: &str) -> String {
if uri.starts_with("/") { if uri.starts_with('/') {
format!("{}{}", self.website_origin, uri) format!("{}{}", self.website_origin, uri)
} else { } else {
format!("{}/{}", self.website_origin, uri) format!("{}/{}", self.website_origin, uri)