diff --git a/src/config.rs b/src/config.rs index b28240f..71e0fae 100644 --- a/src/config.rs +++ b/src/config.rs @@ -208,7 +208,7 @@ impl FederationConfig { // It is valid but uncommon for domains to end with `.` char. Drop this so it cant be used // to bypass domain blocklist. Avoid cloning url in common case. - if domain.ends_with(".") { + if domain.ends_with('.') { let mut url = url.clone(); let domain = &domain[0..domain.len() - 1]; url.set_host(Some(domain))?;