Skip to content

Commit 21bf97b

Browse files
committed
format
1 parent 18aff08 commit 21bf97b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

rs_lib/src/local.rs

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)