Skip to content

Commit 933250b

Browse files
Samuelsillsclaude
andcommitted
Fix formatting: import order and long line wrapping
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent a583c3b commit 933250b

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

library/core/src/sync/atomic.rs

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,9 +246,9 @@ use self::Ordering::*;
246246
use crate::cell::UnsafeCell;
247247
use crate::hint::spin_loop;
248248
use crate::intrinsics::AtomicOrdering as AO;
249-
use crate::{fmt, intrinsics, ub_checks};
250249
#[cfg(kani)]
251250
use crate::kani;
251+
use crate::{fmt, intrinsics, ub_checks};
252252

253253
trait Sealed {}
254254

@@ -4664,7 +4664,13 @@ mod verify {
46644664
fn verify_atomic_compare_exchange() {
46654665
let mut val: i32 = 10;
46664666
let result = unsafe {
4667-
atomic_compare_exchange(&mut val as *mut i32, 10, 20, Ordering::SeqCst, Ordering::SeqCst)
4667+
atomic_compare_exchange(
4668+
&mut val as *mut i32,
4669+
10,
4670+
20,
4671+
Ordering::SeqCst,
4672+
Ordering::SeqCst,
4673+
)
46684674
};
46694675
assert!(result == Ok(10));
46704676
}
@@ -4673,7 +4679,13 @@ mod verify {
46734679
fn verify_atomic_compare_exchange_weak() {
46744680
let mut val: i32 = 10;
46754681
let _ = unsafe {
4676-
atomic_compare_exchange_weak(&mut val as *mut i32, 10, 20, Ordering::SeqCst, Ordering::SeqCst)
4682+
atomic_compare_exchange_weak(
4683+
&mut val as *mut i32,
4684+
10,
4685+
20,
4686+
Ordering::SeqCst,
4687+
Ordering::SeqCst,
4688+
)
46774689
};
46784690
}
46794691

0 commit comments

Comments
 (0)