Skip to content

Commit a05df2e

Browse files
author
Austin Kiekintveld
committed
Fix formatting
1 parent df4457e commit a05df2e

File tree

1 file changed

+6
-2
lines changed
  • library/std/src/sys_common/condvar

1 file changed

+6
-2
lines changed

library/std/src/sys_common/condvar/check.rs

+6-2
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)