From e94758ba90a81240f495ab0deb7f0b413bd8957e Mon Sep 17 00:00:00 2001 From: plebhash Date: Wed, 11 Dec 2024 21:48:05 +0700 Subject: [PATCH] remove redundant Drop implementation from ITF TemplateProvider --- roles/tests-integration/tests/common/mod.rs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/roles/tests-integration/tests/common/mod.rs b/roles/tests-integration/tests/common/mod.rs index 782b56ad5e..508b48a1c2 100644 --- a/roles/tests-integration/tests/common/mod.rs +++ b/roles/tests-integration/tests/common/mod.rs @@ -145,10 +145,6 @@ impl TemplateProvider { TemplateProvider { bitcoind } } - fn stop(&self) { - let _ = self.bitcoind.client.stop().unwrap(); - } - fn generate_blocks(&self, n: u64) { let mining_address = self .bitcoind @@ -164,12 +160,6 @@ impl TemplateProvider { } } -impl Drop for TemplateProvider { - fn drop(&mut self) { - self.stop(); - } -} - fn is_port_open(address: SocketAddr) -> bool { TcpListener::bind(address).is_err() }