From: Matt Corallo Date: Sat, 30 Sep 2023 17:47:45 +0000 (+0000) Subject: Fix new unused variable warning in `test_utils.rs` X-Git-Tag: v0.0.117~4^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=6b75fafaf3c5b480e56340e7cedb59e1cb9ec4d7;p=rust-lightning Fix new unused variable warning in `test_utils.rs` --- diff --git a/lightning/src/util/test_utils.rs b/lightning/src/util/test_utils.rs index ae942a058..bd66e4cae 100644 --- a/lightning/src/util/test_utils.rs +++ b/lightning/src/util/test_utils.rs @@ -423,7 +423,7 @@ impl chainmonitor::Persist fo chain::ChannelMonitorUpdateStatus::Completed } - fn update_persisted_channel(&self, funding_txo: OutPoint, update: Option<&channelmonitor::ChannelMonitorUpdate>, _data: &channelmonitor::ChannelMonitor, update_id: MonitorUpdateId) -> chain::ChannelMonitorUpdateStatus { + fn update_persisted_channel(&self, funding_txo: OutPoint, _update: Option<&channelmonitor::ChannelMonitorUpdate>, _data: &channelmonitor::ChannelMonitor, update_id: MonitorUpdateId) -> chain::ChannelMonitorUpdateStatus { let mut ret = chain::ChannelMonitorUpdateStatus::Completed; if let Some(update_ret) = self.update_rets.lock().unwrap().pop_front() { ret = update_ret;