From af85c45a4b27e71e7131db31d9bcda0aea4b3797 Mon Sep 17 00:00:00 2001 From: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Date: Fri, 16 May 2025 21:34:54 +1000 Subject: [PATCH] Simplify download.rs using io::Error::other Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --- crates/binstalk-downloader/src/download.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/binstalk-downloader/src/download.rs b/crates/binstalk-downloader/src/download.rs index 78943730..ce4d291d 100644 --- a/crates/binstalk-downloader/src/download.rs +++ b/crates/binstalk-downloader/src/download.rs @@ -53,7 +53,7 @@ impl From for io::Error { fn from(e: DownloadError) -> io::Error { match e { DownloadError::Io(io_error) => io_error, - e => io::Error::new(io::ErrorKind::Other, e), + e => io::Error::othet(e), } } }