Skip to content

Commit 8c16225

Browse files
committed
Fix no_std warnings due to unused includes
1 parent 24ae779 commit 8c16225

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lightning/src/ln/channelmanager.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5114,23 +5114,24 @@ impl<'a, Signer: Sign, M: Deref, T: Deref, K: Deref, F: Deref, L: Deref>
51145114
mod tests {
51155115
use bitcoin::hashes::Hash;
51165116
use bitcoin::hashes::sha256::Hash as Sha256;
5117-
use core::sync::atomic::{AtomicBool, Ordering};
51185117
use core::time::Duration;
51195118
use ln::{PaymentPreimage, PaymentHash, PaymentSecret};
5120-
use ln::channelmanager::PersistenceNotifier;
51215119
use ln::features::{InitFeatures, InvoiceFeatures};
51225120
use ln::functional_test_utils::*;
51235121
use ln::msgs;
51245122
use ln::msgs::ChannelMessageHandler;
51255123
use routing::router::{get_keysend_route, get_route};
51265124
use util::events::{Event, MessageSendEvent, MessageSendEventsProvider};
51275125
use util::test_utils;
5128-
use std::sync::Arc;
5129-
use std::thread;
51305126

51315127
#[cfg(feature = "std")]
51325128
#[test]
51335129
fn test_wait_timeout() {
5130+
use ln::channelmanager::PersistenceNotifier;
5131+
use sync::Arc;
5132+
use core::sync::atomic::{AtomicBool, Ordering};
5133+
use std::thread;
5134+
51345135
let persistence_notifier = Arc::new(PersistenceNotifier::new());
51355136
let thread_notifier = Arc::clone(&persistence_notifier);
51365137

0 commit comments

Comments
 (0)