diff --git a/client/src/main.rs b/client/src/main.rs index 986c870..9230d57 100644 --- a/client/src/main.rs +++ b/client/src/main.rs @@ -117,7 +117,7 @@ impl App { }) } - async fn auto_refresh Pin>>>>(&mut self, op: F) -> anyhow::Result { + async fn auto_refresh>, O: Fn() -> F>(&mut self, op: O) -> anyhow::Result { match op().await { Err(cause) => match cause.downcast_ref::() { Some(e) => if let ClientError::HttpRequestFailed { url: _, error } = e {