From 15f12953b2b0931d8bbb03fd341679b72b8e79dd Mon Sep 17 00:00:00 2001 From: Jeffrey Czyz Date: Wed, 18 Jan 2023 22:14:35 -0600 Subject: [PATCH] Fix unused_imports warning in no-std tests --- lightning/src/routing/gossip.rs | 1 + 1 file changed, 1 insertion(+) 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, -- 2.39.5