Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
crowlKats committed Jan 28, 2022
1 parent f0d1c7e commit 3dc30d1
Showing 1 changed file with 15 additions and 19 deletions.
34 changes: 15 additions & 19 deletions url/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,25 +90,21 @@ impl Host<String> {
}

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() {
Expand Down

0 comments on commit 3dc30d1

Please sign in to comment.