]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sync/condvar.rs
Don't subst an adt def
[rust.git] / library / std / src / sync / condvar.rs
index 00a4afc57051984fdd42b71ba5d25c7c2c787414..b41918ec1cffc6c1f7613b70da2b4732026b87dc 100644 (file)
@@ -61,6 +61,7 @@ impl WaitTimeoutResult {
     ///     }
     /// }
     /// ```
+    #[must_use]
     #[stable(feature = "wait_timeout", since = "1.5.0")]
     pub fn timed_out(&self) -> bool {
         self.0
@@ -121,6 +122,7 @@ impl Condvar {
     /// let condvar = Condvar::new();
     /// ```
     #[stable(feature = "rust1", since = "1.0.0")]
+    #[must_use]
     pub fn new() -> Condvar {
         Condvar { inner: sys::Condvar::new() }
     }