]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix unused_imports warning in no-std tests
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 Jan 2023 04:14:35 +0000 (22:14 -0600)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Jan 2023 22:04:39 +0000 (16:04 -0600)
lightning/src/routing/gossip.rs

index 1a5b978502c0922c651d6fd3175c67f7ff1897fd..39f07914a61a11541b055fe9cabafc6a7dcce43d 100644 (file)
@@ -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,