remove trailing whitespace

remove trailing whitespace
This commit is contained in:
Pslydhh 2018-06-02 15:36:23 +08:00 committed by GitHub
parent 7da469da8b
commit 151e41ff0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -796,10 +796,10 @@ pub fn park() {
let mut m = thread.inner.lock.lock().unwrap();
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
Ok(_) => {}
Err(NOTIFIED) => {
Err(NOTIFIED) => {
// should consume this notification, so prohibit spurious wakeups in next park...
thread.inner.state.store(EMPTY, SeqCst);
return;
thread.inner.state.store(EMPTY, SeqCst);
return;
}, // notified after we locked
Err(_) => panic!("inconsistent park state"),
}
@ -886,10 +886,10 @@ pub fn park_timeout(dur: Duration) {
let m = thread.inner.lock.lock().unwrap();
match thread.inner.state.compare_exchange(EMPTY, PARKED, SeqCst, SeqCst) {
Ok(_) => {}
Err(NOTIFIED) => {
Err(NOTIFIED) => {
// should consume this notification, so prohibit spurious wakeups in next park...
thread.inner.state.store(EMPTY, SeqCst);
return;
thread.inner.state.store(EMPTY, SeqCst);
return;
}, // notified after we locked
Err(_) => panic!("inconsistent park_timeout state"),
}