From 0905ab1ef8fe1f255c4a0acc521090b2af4f2f37 Mon Sep 17 00:00:00 2001 From: sylv256 Date: Sat, 10 Oct 2026 17:21:58 -0400 Subject: [PATCH] fix: impl Future in auto_refresh --- client/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.54.0