]> git.lizzy.rs Git - rust.git/blobdiff - library/std/src/sys_common/condvar.rs
Auto merge of #98221 - cjgillot:single-coh, r=lcnr
[rust.git] / library / std / src / sys_common / condvar.rs
index 1def0518e0a6fff0825ea90205c2c7b805d82cbb..f3ac1061b8935045ab1b01ca920dd324c4e06999 100644 (file)
@@ -14,7 +14,8 @@ pub struct Condvar {
 
 impl Condvar {
     /// Creates a new condition variable for use.
-    pub fn new() -> Self {
+    #[inline]
+    pub const fn new() -> Self {
         Self { inner: imp::MovableCondvar::new(), check: CondvarCheck::new() }
     }