소스 검색

fix tui driven example

Evan Almloff 2 년 전
부모
커밋
f03e08fc3b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 })
     }
 }