From cf74c032f6cfd2b202ab65699cf07b8584d79511 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 16 May 2025 21:39:14 +1000 Subject: [PATCH] Fix utils.rs in io::Error::other Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-downloader/src/utils.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/binstalk-downloader/src/utils.rs b/crates/binstalk-downloader/src/utils.rs index 65f38918..ee1e27cf 100644 --- a/crates/binstalk-downloader/src/utils.rs +++ b/crates/binstalk-downloader/src/utils.rs @@ -100,8 +100,7 @@ where async fn inner(handle: task::JoinHandle>) -> io::Result { match handle.await { Ok(res) => res, - Err(err) => Err(io::Error::new( - io::ErrorKind::Other, + Err(err) => Err(io::Error::other( format!("background task failed: {err}"), )), }