Explorar el Código

src/system/condvar: chore clippy

skoupidi hace 2 años
padre
commit
e262b08a85
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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