rust fmt
This commit is contained in:
parent
aaa6de7905
commit
f63096e4f2
1 changed files with 5 additions and 1 deletions
|
@ -248,7 +248,11 @@ impl<T> Packet<T> {
|
|||
// Returns true if blocking should proceed.
|
||||
fn decrement(&self, token: SignalToken) -> StartResult {
|
||||
unsafe {
|
||||
assert_eq!(self.to_wake.load(Ordering::SeqCst), 0, "This is a known bug in rust. See https://github.com/rust-lang/rust/issues/39364");
|
||||
assert_eq!(
|
||||
self.to_wake.load(Ordering::SeqCst),
|
||||
0,
|
||||
"This is a known bug in rust. See https://github.com/rust-lang/rust/issues/39364"
|
||||
);
|
||||
let ptr = token.cast_to_usize();
|
||||
self.to_wake.store(ptr, Ordering::SeqCst);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue