From: Elias Rohrer Date: Wed, 26 Oct 2022 09:26:23 +0000 (+0200) Subject: Fix warnings for ununsed anchor imports X-Git-Tag: v0.0.113~60^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=49dfcb6302084f576e8a67ccbe7874d0c7bcd928;p=rust-lightning Fix warnings for ununsed anchor imports Previously introduced during release commit. --- diff --git a/lightning/src/util/events.rs b/lightning/src/util/events.rs index 472f72878..0e04442c5 100644 --- a/lightning/src/util/events.rs +++ b/lightning/src/util/events.rs @@ -15,6 +15,7 @@ //! few other things. use crate::chain::keysinterface::SpendableOutputDescriptor; +#[cfg(anchors)] use crate::ln::chan_utils::HTLCOutputInCommitment; use crate::ln::channelmanager::PaymentId; use crate::ln::channel::FUNDING_CONF_DEADLINE_BLOCKS; @@ -26,7 +27,9 @@ use crate::routing::gossip::NetworkUpdate; use crate::util::ser::{BigSize, FixedLengthReader, Writeable, Writer, MaybeReadable, Readable, VecReadWrapper, VecWriteWrapper, OptionDeserWrapper}; use crate::routing::router::{RouteHop, RouteParameters}; -use bitcoin::{PackedLockTime, Transaction, OutPoint}; +use bitcoin::{PackedLockTime, Transaction}; +#[cfg(anchors)] +use bitcoin::OutPoint; use bitcoin::blockdata::script::Script; use bitcoin::hashes::Hash; use bitcoin::hashes::sha256::Hash as Sha256;