Remove unused `mem::drop` which drops a reference 2023-09-117-bindings-part1
authorMatt Corallo <git@bluematt.me>
Sun, 1 Oct 2023 00:00:37 +0000 (00:00 +0000)
committerMatt Corallo <git@bluematt.me>
Sun, 1 Oct 2023 00:05:01 +0000 (00:05 +0000)
lightning/src/chain/chainmonitor.rs

index aa9508d234fd899ac54b00d813425be8bfa4a324..e87d082d9a7bb9061894ce26fb15da0087a7c173 100644 (file)
@@ -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);