Skip to content

Commit 8a05784

Browse files
committed
fixup: Allow unused_import, these are used in cfg(peer_storage)
1 parent 662fff1 commit 8a05784

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/chainmonitor.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ use bitcoin::hash_types::{BlockHash, Txid};
2828

2929
use crate::chain;
3030
use crate::chain::chaininterface::{BroadcasterInterface, FeeEstimator};
31+
#[allow(unused_imports)]
3132
use crate::chain::channelmonitor::{
3233
write_chanmon_internal, Balance, ChannelMonitor, ChannelMonitorUpdate, MonitorEvent,
3334
TransactionOutputs, WithChannelMonitor,
@@ -47,6 +48,7 @@ use crate::types::features::{InitFeatures, NodeFeatures};
4748
use crate::util::errors::APIError;
4849
use crate::util::logger::{Logger, WithContext};
4950
use crate::util::persist::MonitorName;
51+
#[allow(unused_imports)]
5052
use crate::util::ser::{VecWriter, Writeable};
5153
use crate::util::wakers::{Future, Notifier};
5254
use bitcoin::secp256k1::PublicKey;
@@ -811,6 +813,7 @@ where
811813
}
812814

813815
fn send_peer_storage(&self, their_node_id: PublicKey) {
816+
#[allow(unused_mut)]
814817
let mut monitors_list: Vec<PeerStorageMonitorHolder> = Vec::new();
815818
let random_bytes = self.entropy_source.get_secure_random_bytes();
816819

0 commit comments

Comments
 (0)