1 2 3 4 5 6 7 8 9 10
pub(crate) fn build_url(base_url: &str, route: &str) -> String { let mut out = String::from(base_url); if !out.ends_with('/') { out.push('/'); } out.push_str(route); out }