]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build warnings
authorJeffrey Czyz <jkczyz@gmail.com>
Thu, 19 Oct 2023 23:02:58 +0000 (18:02 -0500)
committerJeffrey Czyz <jkczyz@gmail.com>
Fri, 20 Oct 2023 14:51:29 +0000 (09:51 -0500)
lightning/src/ln/msgs.rs
lightning/src/ln/outbound_payment.rs

index 37bb47ed477ff1329847cc0bc33ec8b374a886d9..c36f87f135dd4c75fc06eb683f05015b1d71578d 100644 (file)
@@ -2715,6 +2715,7 @@ mod tests {
 
        #[cfg(feature = "std")]
        use std::net::{Ipv4Addr, Ipv6Addr, SocketAddr, SocketAddrV4, SocketAddrV6, ToSocketAddrs};
+       #[cfg(feature = "std")]
        use crate::ln::msgs::SocketAddressParseError;
 
        #[test]
index 7e58c8adf298c1e7ace9085de66ac04c5913139e..a0aca510574ac6f05fbd22abd40dd8508c475f49 100644 (file)
@@ -1823,6 +1823,7 @@ mod tests {
        use crate::ln::features::{ChannelFeatures, NodeFeatures};
        use crate::ln::msgs::{ErrorAction, LightningError};
        use crate::ln::outbound_payment::{Bolt12PaymentError, OutboundPayments, Retry, RetryableSendFailure, StaleExpiration};
+       #[cfg(feature = "std")]
        use crate::offers::invoice::DEFAULT_RELATIVE_EXPIRY;
        use crate::offers::offer::OfferBuilder;
        use crate::offers::test_utils::*;