Explorar o código

fix tui driven example

Evan Almloff %!s(int64=2) %!d(string=hai) anos
pai
achega
f03e08fc3b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/tui/examples/driven.rs

+ 1 - 1
packages/tui/examples/driven.rs

@@ -198,7 +198,7 @@ impl Renderer<Rc<EventData>> for Test {
         }
     }
 
-    fn poll_async(&mut self) -> std::pin::Pin<Box<dyn futures::Future<Output = ()> + Send>> {
+    fn poll_async(&mut self) -> std::pin::Pin<Box<dyn futures::Future<Output = ()> + '_>> {
         Box::pin(async move { tokio::time::sleep(std::time::Duration::from_millis(1000)).await })
     }
 }