mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-05-21 11:20:03 +00:00
dep: Upgrade transitive dependencies (#2154)
* dep: Upgrade transitive dependencies * Simplify download.rs using io::Error::other Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fix utils.rs in io::Error::other Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fix typo in download.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Use io::Error::other in errors.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Use TempDir::keep instead of deprecated into_path in entry.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Use io::Error::other in gh_token.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fmt gh_token.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> * Fmt utils.rs Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> --------- Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
277269fc8e
commit
8d438736eb
6 changed files with 100 additions and 154 deletions
|
@ -53,7 +53,7 @@ impl From<DownloadError> 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::other(e),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -100,10 +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,
|
||||
format!("background task failed: {err}"),
|
||||
)),
|
||||
Err(err) => Err(io::Error::other(format!("background task failed: {err}"))),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue