Explorar o código

src/system/condvar: chore clippy

skoupidi %!s(int64=2) %!d(string=hai) anos
pai
achega
e262b08a85
Modificáronse 1 ficheiros con 1 adicións e 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