Преглед изворни кода

src/system/condvar: chore clippy

skoupidi пре 2 година
родитељ
комит
e262b08a85
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/system/condvar.rs

+ 1 - 1
src/system/condvar.rs

@@ -229,7 +229,7 @@ mod tests {
                 .spawn(async move {
                     select! {
                         () = cv_.wait().fuse() => (),
-                        () = (|| async {})().fuse() => ()
+                        () = (async {}).fuse() => ()
                     }
 
                     // The above future was dropped and we make a new one