Skip to content

Commit 3acc3ef

Browse files
committed
minor changes to pass the format check
1 parent 6813c1c commit 3acc3ef

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libstd/sys/hermit/condvar.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
use crate::ptr;
12
use crate::cmp;
23
use crate::ffi::c_void;
34
use crate::mem;
45
use crate::sync::atomic::{AtomicUsize, Ordering::SeqCst};
56
use crate::sys::hermit::abi;
67
use crate::sys::mutex::Mutex;
7-
use crate::ptr;
88
use crate::time::Duration;
99

1010
// The implementation is inspired by Andrew D. Birrell's paper
@@ -21,11 +21,7 @@ unsafe impl Sync for Condvar {}
2121

2222
impl Condvar {
2323
pub const fn new() -> Condvar {
24-
Condvar {
25-
counter: AtomicUsize::new(0),
26-
sem1: ptr::null(),
27-
sem2: ptr::null(),
28-
}
24+
Condvar { counter: AtomicUsize::new(0), sem1: ptr::null(), sem2: ptr::null() }
2925
}
3026

3127
pub unsafe fn init(&mut self) {

0 commit comments

Comments
 (0)