fix tui driven example

This commit is contained in:
Evan Almloff committed 2023-02-07 21:15:09 -06:00
1 parent 997986ecf6
commit f03e08fc3b
1 file changed
+1 -1
+1 -1
View File
@@ -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 }) Box::pin(async move { tokio::time::sleep(std::time::Duration::from_millis(1000)).await })
} }
} }