Skip to content

Commit 7462ee6

Browse files
author
Austin Kiekintveld
committed
Fix formatting
1 parent 9b93c74 commit 7462ee6

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

std/src/sys_common/condvar/check.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,12 @@ impl SameMutexCheck {
2424
}
2525
pub fn verify(&self, mutex: &MovableMutex) {
2626
let addr = mutex.raw() as *const imp::Mutex as *const () as *mut _;
27-
match self.addr.compare_exchange(ptr::null_mut(), addr, Ordering::Relaxed, Ordering::Relaxed)
28-
{
27+
match self.addr.compare_exchange(
28+
ptr::null_mut(),
29+
addr,
30+
Ordering::Relaxed,
31+
Ordering::Relaxed,
32+
) {
2933
Ok(_) => {} // Stored the address
3034
Err(n) if n == addr => {} // Lost a race to store the same address
3135
_ => panic!("attempted to use a condition variable with two mutexes"),

0 commit comments

Comments
 (0)