revise code to pass the format check
This commit is contained in:
parent
d6e955f3bf
commit
530f575466
1 changed files with 3 additions and 3 deletions
|
@ -36,9 +36,9 @@ struct SpinlockGuard<'a, T: ?Sized + 'a> {
|
||||||
impl<T> Spinlock<T> {
|
impl<T> Spinlock<T> {
|
||||||
pub const fn new(user_data: T) -> Spinlock<T> {
|
pub const fn new(user_data: T) -> Spinlock<T> {
|
||||||
Spinlock {
|
Spinlock {
|
||||||
queue: AtomicUsize::new(0),
|
queue: AtomicUsize::new(0),
|
||||||
dequeue: AtomicUsize::new(1),
|
dequeue: AtomicUsize::new(1),
|
||||||
data: UnsafeCell::new(user_data),
|
data: UnsafeCell::new(user_data),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue