Avoid unnecessary immediate retake `per_peer_state` lock
[rust-lightning] / lightning / src / lib.rs
index 045a8f73cca778812c6e03062ef2b7a8a478e217..1f3ab47b1ae3f7d2ca8802e46c267d5428e3822c 100644 (file)
@@ -78,6 +78,8 @@ extern crate core;
 pub mod util;
 pub mod chain;
 pub mod ln;
+#[allow(unused)]
+mod offers;
 pub mod routing;
 pub mod onion_message;
 
@@ -181,7 +183,7 @@ extern crate backtrace;
 #[cfg(feature = "std")]
 mod sync {
        #[cfg(all(not(feature = "_bench_unstable"), test))]
-       pub use debug_sync::*;
+       pub use crate::debug_sync::*;
        #[cfg(any(feature = "_bench_unstable", not(test)))]
        pub use ::std::sync::{Arc, Mutex, Condvar, MutexGuard, RwLock, RwLockReadGuard, RwLockWriteGuard};
        #[cfg(any(feature = "_bench_unstable", not(test)))]