Skip to content

Commit

Permalink
Bump crossterm from 0.19.0 to 0.20.0 (#102)
Browse files Browse the repository at this point in the history
Summary:

Bump crossterm from 0.19.0 to 0.20.0. This requires extra work to remove
`impl From<crossterm::ErrorKind> for Error` because `crossterm::ErrorKind`
became just an alias of `io::Error`. We don't have to convert crossterm
specific errors. See crossterm-rs/crossterm#553
for more details.

Release note:

https://github.com/crossterm-rs/crossterm/releases

Changelog:

https://github.com/crossterm-rs/crossterm/blob/master/CHANGELOG.md
  • Loading branch information
yykamei authored Jun 20, 2021
1 parent 82cf780 commit 4518ffc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 31 deletions.
36 changes: 20 additions & 16 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ edition = "2018"
version = "0.2.0"

[dependencies]
crossterm = { version = "0.19.0", default-features = false }
crossterm = "0.20.0"
libc = "0.2.97"
unicode-segmentation = "1.7.1"
unicode-width = "0.1.8"
Expand Down
14 changes: 0 additions & 14 deletions src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,20 +92,6 @@ impl From<io::Error> for Error {
}
}

impl From<crossterm::ErrorKind> for Error {
fn from(error: crossterm::ErrorKind) -> Self {
Self {
message: format!(
"Unhandled terminal error happened. See the details from .source: {}",
error
),
kind: ErrorKind::Terminal,
source: Some(Box::new(error)),
exit_code: FAILURE,
}
}
}

impl From<NulError> for Error {
fn from(error: NulError) -> Self {
Self {
Expand Down

0 comments on commit 4518ffc

Please sign in to comment.