revise code to pass the format check

This commit is contained in:
Stefan Lankes 2020-10-09 07:26:48 +02:00
parent d6e955f3bf
commit 530f575466
No known key found for this signature in database
GPG Key ID: 28578EBB789EF62B

View File

@ -36,9 +36,9 @@ struct SpinlockGuard<'a, T: ?Sized + 'a> {
impl<T> Spinlock<T> {
pub const fn new(user_data: T) -> Spinlock<T> {
Spinlock {
queue: AtomicUsize::new(0),
dequeue: AtomicUsize::new(1),
data: UnsafeCell::new(user_data),
queue: AtomicUsize::new(0),
dequeue: AtomicUsize::new(1),
data: UnsafeCell::new(user_data),
}
}