Skip to content

Commit 298d542

Browse files
committed
fix RwLockWriteGuard import
1 parent 7ea4a63 commit 298d542

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

lightning/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ mod sync {
158158
#[cfg(test)]
159159
pub use debug_sync::*;
160160
#[cfg(not(test))]
161-
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard};
161+
pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
162162
}
163163

164164
#[cfg(not(feature = "std"))]

lightning/src/routing/network_graph.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,10 @@ use io;
3737
use prelude::*;
3838
use alloc::collections::{BTreeMap, btree_map::Entry as BtreeEntry};
3939
use core::{cmp, fmt};
40-
use sync::{RwLock, RwLockReadGuard};
40+
use sync::{RwLock, RwLockReadGuard, RwLockWriteGuard};
4141
use core::sync::atomic::{AtomicUsize, Ordering};
4242
use sync::Mutex;
4343
use core::ops::Deref;
44-
use std::sync::RwLockWriteGuard;
4544
use bitcoin::hashes::hex::ToHex;
4645

4746
#[cfg(feature = "std")]

0 commit comments

Comments
 (0)