mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-22 13:38:43 +00:00
Rm unused variant binstalk_downloader::download::DownloadError::UserAbort
(#653)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
42672ccf40
commit
daec880008
2 changed files with 0 additions and 4 deletions
|
@ -39,9 +39,6 @@ pub enum DownloadError {
|
||||||
/// - Exit: 74
|
/// - Exit: 74
|
||||||
#[error(transparent)]
|
#[error(transparent)]
|
||||||
Io(io::Error),
|
Io(io::Error),
|
||||||
|
|
||||||
#[error("installation cancelled by user")]
|
|
||||||
UserAbort,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<io::Error> for DownloadError {
|
impl From<io::Error> for DownloadError {
|
||||||
|
|
|
@ -413,7 +413,6 @@ impl From<DownloadError> for BinstallError {
|
||||||
Unzip(zip_error) => zip_error.into(),
|
Unzip(zip_error) => zip_error.into(),
|
||||||
Remote(remote_error) => remote_error.into(),
|
Remote(remote_error) => remote_error.into(),
|
||||||
Io(io_error) => io_error.into(),
|
Io(io_error) => io_error.into(),
|
||||||
UserAbort => BinstallError::UserAbort,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue