]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f fix imports in BP
authorMatt Corallo <git@bluematt.me>
Tue, 28 May 2024 15:24:59 +0000 (15:24 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 3 Jun 2024 18:51:28 +0000 (18:51 +0000)
lightning-background-processor/src/lib.rs

index b612dd96f6aa65fbb789dc32ed98b465df64ff07..6b7cd5b0567857723d4aeb2692a2b7b4c7f03614 100644 (file)
@@ -27,7 +27,7 @@ use lightning::chain::chainmonitor::{ChainMonitor, Persist};
 use lightning::events::{Event, PathFailure};
 #[cfg(feature = "std")]
 use lightning::events::EventHandler;
-#[cfg(any(feature = "std", feature = "futures"))]
+#[cfg(feature = "std")]
 use lightning::events::EventsProvider;
 
 use lightning::ln::channelmanager::AChannelManager;
@@ -57,8 +57,6 @@ use std::time::Instant;
 
 #[cfg(not(feature = "std"))]
 use alloc::boxed::Box;
-#[cfg(not(feature = "std"))]
-use alloc::vec::Vec;
 
 /// `BackgroundProcessor` takes care of tasks that (1) need to happen periodically to keep
 /// Rust-Lightning running properly, and (2) either can or should be run in the background. Its