mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-06-15 15:16:37 +00:00
Use io::Error::other in errors.rs
Signed-off-by: Jiahao XU <30436523+NobodyXu@users.noreply.github.com>
This commit is contained in:
parent
d57b1fa02c
commit
e223906137
1 changed files with 1 additions and 1 deletions
|
@ -539,7 +539,7 @@ impl From<BinstallError> for io::Error {
|
||||||
fn from(e: BinstallError) -> io::Error {
|
fn from(e: BinstallError) -> io::Error {
|
||||||
match e {
|
match e {
|
||||||
BinstallError::Io(io_error) => io_error,
|
BinstallError::Io(io_error) => io_error,
|
||||||
e => io::Error::new(io::ErrorKind::Other, e),
|
e => io::Error::other(e),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue