File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -598,7 +598,8 @@ fn url_to_local_sub_path<'a>(
598598 }
599599
600600 fn get_extension ( url : & Url , content_type : Option < & str > ) -> & ' static str {
601- let media_type = MediaType :: from_specifier_and_content_type ( url, content_type) ;
601+ let media_type =
602+ MediaType :: from_specifier_and_content_type ( url, content_type) ;
602603 match media_type {
603604 MediaType :: JavaScript => ".js" ,
604605 MediaType :: Jsx => ".jsx" ,
@@ -1211,11 +1212,7 @@ mod test {
12111212 & [ ] ,
12121213 "deno.land/x/#test._4ee3d/main.ts" ,
12131214 ) ;
1214- run_test (
1215- "https://deno.land/x/mod.wasm" ,
1216- & [ ] ,
1217- "deno.land/x/mod.wasm" ,
1218- ) ;
1215+ run_test ( "https://deno.land/x/mod.wasm" , & [ ] , "deno.land/x/mod.wasm" ) ;
12191216
12201217 #[ track_caller]
12211218 fn run_test ( url : & str , headers : & [ ( & str , & str ) ] , expected : & str ) {
You can’t perform that action at this time.
0 commit comments