1
Fork 0

Add #[must_use] to is_condition tests

A continuation of #89718.
This commit is contained in:
John Kugelman 2021-10-11 21:15:57 -04:00
parent 7cc8c44871
commit 01b439e764
6 changed files with 47 additions and 0 deletions

View file

@ -167,6 +167,7 @@ impl BarrierWaitResult {
/// println!("{:?}", barrier_wait_result.is_leader());
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[must_use]
pub fn is_leader(&self) -> bool {
self.0
}