about summary refs log tree commit diff
path: root/library/std/src/sync
diff options
context:
space:
mode:
authorJohn Kugelman <john@kugelman.name>2021-10-11 21:15:57 -0400
committerJohn Kugelman <john@kugelman.name>2021-10-11 21:15:57 -0400
commit01b439e764617c715787c3ba629c83c77c191db0 (patch)
treeb7d15aea60e683c024fb16b8eb37aa984633b335 /library/std/src/sync
parent7cc8c44871b6e789d29fc0d42dacad9804c3a41c (diff)
downloadrust-01b439e764617c715787c3ba629c83c77c191db0.tar.gz
rust-01b439e764617c715787c3ba629c83c77c191db0.zip
Add #[must_use] to is_condition tests
A continuation of #89718.
Diffstat (limited to 'library/std/src/sync')
-rw-r--r--library/std/src/sync/barrier.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/sync/barrier.rs b/library/std/src/sync/barrier.rs
index 0e28a2d166f..133c3e46cd8 100644
--- a/library/std/src/sync/barrier.rs
+++ b/library/std/src/sync/barrier.rs
@@ -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
     }