diff options
author | Jesse Luehrs <doy@tozt.net> | 2019-10-27 14:46:10 -0400 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2019-10-27 14:46:10 -0400 |
commit | cfe9463662513bf05750345c78c79ee0fab10c68 (patch) | |
tree | 988b93c5ce2b190358187b5f1a1edc99ac870bec | |
parent | fbfe6d44e0532426ef11e58c65535072a4b3c341 (diff) | |
download | tokio-terminal-resize-cfe9463662513bf05750345c78c79ee0fab10c68.tar.gz tokio-terminal-resize-cfe9463662513bf05750345c78c79ee0fab10c68.zip |
remove unnecessary typedef
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -19,8 +19,6 @@ pub enum Error { SigWinchHandler { source: std::io::Error }, } -pub type Result<T> = std::result::Result<T, Error>; - pub struct Resizer { winches: Box<dyn futures::stream::Stream<Item = (), Error = Error> + Send>, @@ -63,7 +61,7 @@ impl futures::stream::Stream for Resizer { } } -fn term_size() -> Result<(u16, u16)> { +fn term_size() -> Result<(u16, u16), Error> { if let Some((cols, rows)) = term_size::dimensions() { Ok(( rows.try_into().context(InvalidTerminalSize)?, |