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<T: Send + 'static>(handle: task::JoinHandle<io::Result<T>>) -> io::Result<T> { 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}"), )), }