Fix new warnings causing CI build failures on rustc beta
authorMatt Corallo <git@bluematt.me>
Wed, 20 Mar 2024 19:14:40 +0000 (19:14 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 5 Apr 2024 09:05:26 +0000 (09:05 +0000)
lightning-rapid-gossip-sync/src/processing.rs

index 9023b9ba38ca52c16d003bebaa21e1511c946d2e..b3fae0ffd8bea8e19822c5a2cf9bc19d3fe33939 100644 (file)
@@ -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