Skip to content

Commit 60a21c6

Browse files
committed
Fix new warning-errors in 1.75 CI builds
1 parent 8cb16fd commit 60a21c6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lightning/src/offers/offer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,7 @@ macro_rules! offer_explicit_metadata_builder_methods {
258258
/// Sets the [`Offer::metadata`] to the given bytes.
259259
///
260260
/// Successive calls to this method will override the previous setting.
261+
#[allow(unused_mut)]
261262
pub fn metadata(
262263
mut $self: $self_type, metadata: Vec<u8>,
263264
) -> Result<$return_type, Bolt12SemanticError> {

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)