Skip to content

Commit 530f575

Browse files
committed
revise code to pass the format check
1 parent d6e955f commit 530f575

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/std/src/sys/hermit/mutex.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ struct SpinlockGuard<'a, T: ?Sized + 'a> {
3636
impl<T> Spinlock<T> {
3737
pub const fn new(user_data: T) -> Spinlock<T> {
3838
Spinlock {
39-
queue: AtomicUsize::new(0),
40-
dequeue: AtomicUsize::new(1),
41-
data: UnsafeCell::new(user_data),
39+
queue: AtomicUsize::new(0),
40+
dequeue: AtomicUsize::new(1),
41+
data: UnsafeCell::new(user_data),
4242
}
4343
}
4444

0 commit comments

Comments
 (0)