clippy
This commit is contained in:
parent
531d4264cd
commit
ac094086cd
1 changed files with 1 additions and 1 deletions
|
|
@ -208,7 +208,7 @@ impl<T: Clone> FederationConfig<T> {
|
||||||
|
|
||||||
// It is valid but uncommon for domains to end with `.` char. Drop this so it cant be used
|
// 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.
|
// to bypass domain blocklist. Avoid cloning url in common case.
|
||||||
if domain.ends_with(".") {
|
if domain.ends_with('.') {
|
||||||
let mut url = url.clone();
|
let mut url = url.clone();
|
||||||
let domain = &domain[0..domain.len() - 1];
|
let domain = &domain[0..domain.len() - 1];
|
||||||
url.set_host(Some(domain))?;
|
url.set_host(Some(domain))?;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue