File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -151,10 +151,7 @@ impl UrlPattern {
151151 Err ( _) => return Ok ( false ) ,
152152 } ;
153153 :: urlpattern:: UrlPatternMatchInput :: Url (
154- match url:: Url :: options ( )
155- . base_url ( Some ( & base_url) )
156- . parse ( input. as_ref ( ) )
157- {
154+ match url:: Url :: options ( ) . base_url ( Some ( & base_url) ) . parse ( & input) {
158155 Ok ( url) => url,
159156 Err ( _) => return Ok ( false ) ,
160157 } ,
@@ -239,10 +236,7 @@ impl UrlPattern {
239236 Err ( _) => return Ok ( None ) ,
240237 } ;
241238 :: urlpattern:: UrlPatternMatchInput :: Url (
242- match url:: Url :: options ( )
243- . base_url ( Some ( & base_url) )
244- . parse ( input. as_ref ( ) )
245- {
239+ match url:: Url :: options ( ) . base_url ( Some ( & base_url) ) . parse ( input) {
246240 Ok ( url) => url,
247241 Err ( _) => return Ok ( None ) ,
248242 } ,
You can’t perform that action at this time.
0 commit comments