From 033ba91a784345184cca52dfaf0013f33edffc33 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 16 Feb 2022 13:50:19 -0700 Subject: [PATCH] Fix pattern syntax for rustc 1.45 --- url/src/host.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/url/src/host.rs b/url/src/host.rs index a69d8c97d..ad5b755d2 100644 --- a/url/src/host.rs +++ b/url/src/host.rs @@ -90,7 +90,7 @@ impl Host { } let is_invalid_domain_char = |c| { - matches!(c, |'\0'..='\u{001F}'| ' ' + matches!(c, '\0'..='\u{001F}'| ' ' | '#' | '%' | '/'