From 7a583bb756ece7474065d8c827a2864b641378bd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sun, 1 Oct 2023 00:00:37 +0000 Subject: [PATCH] Remove unused `mem::drop` which drops a reference --- lightning/src/chain/chainmonitor.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lightning/src/chain/chainmonitor.rs b/lightning/src/chain/chainmonitor.rs index aa9508d23..e87d082d9 100644 --- a/lightning/src/chain/chainmonitor.rs +++ b/lightning/src/chain/chainmonitor.rs @@ -324,7 +324,6 @@ where C::Target: chain::Filter, if self.update_monitor_with_chain_data(header, best_height, txdata, &process, funding_outpoint, &monitor_state).is_err() { // Take the monitors lock for writing so that we poison it and any future // operations going forward fail immediately. - core::mem::drop(monitor_state); core::mem::drop(monitor_lock); let _poison = self.monitors.write().unwrap(); log_error!(self.logger, "{}", err_str); -- 2.39.5