From: Matt Corallo Date: Wed, 20 Mar 2024 19:14:40 +0000 (+0000) Subject: Fix new warnings causing CI build failures on rustc beta X-Git-Tag: v0.0.123-beta~16^2~8 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=d639da9d234e4ae6423fc012a6498140396665a3;p=rust-lightning Fix new warnings causing CI build failures on rustc beta --- diff --git a/lightning-rapid-gossip-sync/src/processing.rs b/lightning-rapid-gossip-sync/src/processing.rs index 9023b9ba3..b3fae0ffd 100644 --- a/lightning-rapid-gossip-sync/src/processing.rs +++ b/lightning-rapid-gossip-sync/src/processing.rs @@ -19,7 +19,7 @@ use crate::{GraphSyncError, RapidGossipSync}; #[cfg(all(feature = "std", not(test)))] use std::time::{SystemTime, UNIX_EPOCH}; -#[cfg(not(feature = "std"))] +#[cfg(all(not(feature = "std"), not(test)))] use alloc::{vec::Vec, borrow::ToOwned}; /// The purpose of this prefix is to identify the serialization format, should other rapid gossip