We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6e955f commit 530f575Copy full SHA for 530f575
library/std/src/sys/hermit/mutex.rs
@@ -36,9 +36,9 @@ struct SpinlockGuard<'a, T: ?Sized + 'a> {
36
impl<T> Spinlock<T> {
37
pub const fn new(user_data: T) -> Spinlock<T> {
38
Spinlock {
39
- queue: AtomicUsize::new(0),
40
- dequeue: AtomicUsize::new(1),
41
- data: UnsafeCell::new(user_data),
+ queue: AtomicUsize::new(0),
+ dequeue: AtomicUsize::new(1),
+ data: UnsafeCell::new(user_data),
42
}
43
44
0 commit comments