We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_ref()
1 parent 9024c83 commit bde33a5Copy full SHA for bde33a5
1 file changed
src/lib.rs
@@ -151,10 +151,7 @@ impl UrlPattern {
151
Err(_) => return Ok(false),
152
};
153
::urlpattern::UrlPatternMatchInput::Url(
154
- match url::Url::options()
155
- .base_url(Some(&base_url))
156
- .parse(input.as_ref())
157
- {
+ match url::Url::options().base_url(Some(&base_url)).parse(&input) {
158
Ok(url) => url,
159
160
},
@@ -239,10 +236,7 @@ impl UrlPattern {
239
236
Err(_) => return Ok(None),
240
237
241
238
242
243
244
245
+ match url::Url::options().base_url(Some(&base_url)).parse(input) {
246
247
248
0 commit comments