Skip to content

Commit f4a8cea

Browse files
committed
f fix unused var warning
1 parent 2fdeca0 commit f4a8cea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning/src/sync/debug_sync.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ impl LockMetadata {
124124
res
125125
}
126126

127-
fn pre_lock(this: &Arc<LockMetadata>, double_lock_self_allowed: bool) {
127+
fn pre_lock(this: &Arc<LockMetadata>, _double_lock_self_allowed: bool) {
128128
LOCKS_HELD.with(|held| {
129129
// For each lock which is currently locked, check that no lock's locked-before
130130
// set includes the lock we're about to lock, which would imply a lockorder
@@ -136,7 +136,7 @@ impl LockMetadata {
136136
// must be maintained, and doing so across a set of otherwise-identical mutexes
137137
// is fraught with issues.
138138
#[cfg(feature = "backtrace")]
139-
debug_assert!(double_lock_self_allowed,
139+
debug_assert!(_double_lock_self_allowed,
140140
"Tried to acquire a lock while it was held!\nLock constructed at {}",
141141
get_construction_location(&this._lock_construction_bt));
142142
#[cfg(not(feature = "backtrace"))]

0 commit comments

Comments
 (0)