Skip to content

Commit 9d5a3e2

Browse files
committed
Fix unused-import errors in 1.75 CI builds
1 parent 004c76a commit 9d5a3e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/sync/debug_sync.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ use parking_lot::Condvar as StdCondvar;
1616
use parking_lot::Mutex as StdMutex;
1717
use parking_lot::MutexGuard as StdMutexGuard;
1818

19+
#[cfg(feature = "std")]
1920
pub use parking_lot::WaitTimeoutResult;
2021

2122
use crate::prelude::*;
@@ -56,7 +57,6 @@ impl Condvar {
5657
Ok(MutexGuard { mutex, lock: Some(lock) })
5758
}
5859

59-
#[allow(unused)]
6060
pub fn wait_timeout_while<'a, T, F: FnMut(&mut T) -> bool>(
6161
&'a self, guard: MutexGuard<'a, T>, dur: Duration, condition: F,
6262
) -> LockResult<(MutexGuard<'a, T>, WaitTimeoutResult)> {

0 commit comments

Comments
 (0)