Rm unused variant binstalk_downloader::download::DownloadError::UserAbort (#653)

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2023-01-06 00:08:57 +11:00 committed by GitHub
parent 42672ccf40
commit daec880008
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 4 deletions

View file

@ -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 {

View file

@ -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,
} }
} }
} }