diff --git a/url/src/host.rs b/url/src/host.rs index ad5b755d2..4678cb8a1 100644 --- a/url/src/host.rs +++ b/url/src/host.rs @@ -90,21 +90,25 @@ impl Host { } let is_invalid_domain_char = |c| { - matches!(c, '\0'..='\u{001F}'| ' ' - | '#' - | '%' - | '/' - | ':' - | '<' - | '>' - | '?' - | '@' - | '[' - | '\\' - | ']' - | '^' - | '\u{007F}' - | '|') + matches!( + c, + '\0'..='\u{001F}' + | ' ' + | '#' + | '%' + | '/' + | ':' + | '<' + | '>' + | '?' + | '@' + | '[' + | '\\' + | ']' + | '^' + | '\u{007F}' + | '|' + ) }; if domain.find(is_invalid_domain_char).is_some() {