Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
notriddle committed Feb 16, 2022
1 parent 033ba91 commit fd62d12
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions url/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,25 @@ 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 fd62d12

Please sign in to comment.