From 7d01fcbb77169d446d58a5d8c1aa113a925092a0 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Mon, 10 Aug 2020 17:31:05 -0400 Subject: Remove unnecessary drop calls (#7007) --- cli/module_graph.rs | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'cli/module_graph.rs') 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); } } -- cgit v1.2.3