From: Jeffrey Czyz Date: Thu, 19 Jan 2023 04:14:35 +0000 (-0600) Subject: Fix unused_imports warning in no-std tests X-Git-Tag: v0.0.114-beta~49^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=15f12953b2b0931d8bbb03fd341679b72b8e79dd;p=rust-lightning Fix unused_imports warning in no-std tests --- diff --git a/lightning/src/routing/gossip.rs b/lightning/src/routing/gossip.rs index 1a5b97850..39f07914a 100644 --- a/lightning/src/routing/gossip.rs +++ b/lightning/src/routing/gossip.rs @@ -1935,6 +1935,7 @@ mod tests { use crate::chain; use crate::ln::channelmanager; use crate::ln::chan_utils::make_funding_redeemscript; + #[cfg(feature = "std")] use crate::ln::features::InitFeatures; use crate::routing::gossip::{P2PGossipSync, NetworkGraph, NetworkUpdate, NodeAlias, MAX_EXCESS_BYTES_FOR_RELAY, NodeId, RoutingFees, ChannelUpdateInfo, ChannelInfo, NodeAnnouncementInfo, NodeInfo}; use crate::ln::msgs::{RoutingMessageHandler, UnsignedNodeAnnouncement, NodeAnnouncement,