mirror of
https://github.com/LemmyNet/activitypub-federation-rust.git
synced 2025-03-13 18:52:39 +00:00
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
|
||||
// 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))?;
|
||||
|
|
Loading…
Reference in a new issue