]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix warnings for ununsed anchor imports
authorElias Rohrer <ero@tnull.de>
Wed, 26 Oct 2022 09:26:23 +0000 (11:26 +0200)
committerElias Rohrer <ero@tnull.de>
Thu, 3 Nov 2022 10:45:31 +0000 (11:45 +0100)
Previously introduced during release commit.

lightning/src/util/events.rs

index 472f72878e4cd931a4f39b8e03ad6903ea9e65c5..0e04442c5f0827f51ea5d612b93a69dff7103828 100644 (file)
@@ -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;