Skip to content

Commit

Permalink
Merge pull request #52 from smol-rs/notgull/tagged-events-2
Browse files Browse the repository at this point in the history
  • Loading branch information
notgull committed May 13, 2023
2 parents 97865d1 + 9275054 commit 38f6e7c
Show file tree
Hide file tree
Showing 9 changed files with 1,212 additions and 377 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ portable-atomic = ["portable-atomic-util", "portable_atomic_crate"]

[dependencies]
parking = { version = "2.0.0", optional = true }
portable-atomic-util = { version = "0.1.1", default-features = false, optional = true, features = ["alloc"] }
portable-atomic-util = { version = "0.1.2", default-features = false, optional = true, features = ["alloc"] }

[dependencies.portable_atomic_crate]
package = "portable-atomic"
Expand Down
4 changes: 1 addition & 3 deletions examples/mutex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,7 @@ impl<T> Mutex<T> {
}
Some(mut l) => {
// Wait until a notification is received.
if !l.as_mut().wait_deadline(deadline) {
return None;
}
l.as_mut().wait_deadline(deadline)?;
}
}
}
Expand Down
Loading

0 comments on commit 38f6e7c

Please sign in to comment.