diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2020-08-10 17:31:05 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-10 17:31:05 -0400 |
commit | 7d01fcbb77169d446d58a5d8c1aa113a925092a0 (patch) | |
tree | fef5b3ab1e0d020b982a2692878039423ea6fcd3 /test_util/src/lib.rs | |
parent | 52c1017a74059655f9424f7ceb3f0c74dcc7f3be (diff) |
Remove unnecessary drop calls (#7007)
Diffstat (limited to 'test_util/src/lib.rs')
-rw-r--r-- | test_util/src/lib.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test_util/src/lib.rs b/test_util/src/lib.rs index a6fb74914..bd75133b2 100644 --- a/test_util/src/lib.rs +++ b/test_util/src/lib.rs @@ -593,7 +593,7 @@ pub fn run_and_collect_output( if let Some(envs) = envs { deno_process_builder.envs(envs); } - let http_guard = if need_http_server { + let _http_guard = if need_http_server { Some(http_server()) } else { None @@ -612,7 +612,6 @@ pub fn run_and_collect_output( stderr, status, } = deno.wait_with_output().expect("failed to wait on child"); - drop(http_guard); let stdout = String::from_utf8(stdout).unwrap(); let stderr = String::from_utf8(stderr).unwrap(); if expect_success != status.success() { @@ -705,7 +704,7 @@ impl CheckOutputIntegrationTest { println!("root path {}", root.display()); println!("deno_exe path {}", deno_exe.display()); - let http_server_guard = if self.http_server { + let _http_server_guard = if self.http_server { Some(http_server()) } else { None @@ -742,8 +741,6 @@ impl CheckOutputIntegrationTest { let status = process.wait().expect("failed to finish process"); let exit_code = status.code().unwrap(); - drop(http_server_guard); - actual = strip_ansi_codes(&actual).to_string(); if self.exit_code != exit_code { |