summaryrefslogtreecommitdiff
path: root/cli/module_graph.rs
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-08-10 17:31:05 -0400
committerGitHub <noreply@github.com>2020-08-10 17:31:05 -0400
commit7d01fcbb77169d446d58a5d8c1aa113a925092a0 (patch)
treefef5b3ab1e0d020b982a2692878039423ea6fcd3 /cli/module_graph.rs
parent52c1017a74059655f9424f7ceb3f0c74dcc7f3be (diff)
Remove unnecessary drop calls (#7007)
Diffstat (limited to 'cli/module_graph.rs')
-rw-r--r--cli/module_graph.rs17
1 files changed, 5 insertions, 12 deletions
diff --git a/cli/module_graph.rs b/cli/module_graph.rs
index 8b7a52906..9214fad33 100644
--- a/cli/module_graph.rs
+++ b/cli/module_graph.rs
@@ -604,7 +604,7 @@ mod tests {
#[ignore]
#[tokio::test]
async fn source_graph_fetch() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/019_media_types.ts",
@@ -692,12 +692,11 @@ mod tests {
},
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_definitions.ts",
@@ -749,13 +748,11 @@ mod tests {
));
assert!(graph
.contains_key("http://localhost:4545/cli/tests/type_definitions/qat.ts"));
-
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references2() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_directives_02.ts",
@@ -799,12 +796,11 @@ mod tests {
}
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_type_references3() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
let module_specifier = ModuleSpecifier::resolve_url_or_path(
"http://localhost:4545/cli/tests/type_directives_01.ts",
@@ -842,12 +838,11 @@ mod tests {
}
])
);
- drop(http_server_guard);
}
#[tokio::test]
async fn source_graph_different_langs() {
- let http_server_guard = test_util::http_server();
+ let _http_server_guard = test_util::http_server();
// ModuleGraphLoader was mistakenly parsing this file as TSX
// https://github.com/denoland/deno/issues/5867
@@ -860,8 +855,6 @@ mod tests {
build_graph(&module_specifier)
.await
.expect("Failed to build graph");
-
- drop(http_server_guard);
}
}