diff --git a/hello/src/lib.rs b/hello/src/lib.rs index e5d2378..9b56c7f 100644 --- a/hello/src/lib.rs +++ b/hello/src/lib.rs @@ -51,7 +51,7 @@ pub fn add(a: i32, b: i32) -> i32 { #[uniffi::export] pub async fn say_after(ms: u64, who: String) -> String { - let never = std::future::pending::<()>(); + let never = pending::<()>(); timeout(std::time::Duration::from_millis(ms), never) .await .unwrap_err();