diff options
author | Andy Caldwell <andy.m.caldwell@googlemail.com> | 2019-02-13 05:12:42 +0000 |
---|---|---|
committer | doug tangren <d.tangren@gmail.com> | 2019-02-13 00:12:42 -0500 |
commit | 2a40dc00e6aeb611db8095dc8646e5132fea356b (patch) | |
tree | 30929a1ee4f0386d0879054939eabd12b0a9dcda /src/tty.rs | |
parent | 31a913b4a1a6a51179ddd3c3b7b6727984e829e5 (diff) |
Copy from container (#150)
* Add 'copy_from' function to 'Container'
* Run clippy
* Update deps
Diffstat (limited to 'src/tty.rs')
-rw-r--r-- | src/tty.rs | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -70,6 +70,12 @@ impl TtyDecoder { } } +impl Default for TtyDecoder { + fn default() -> Self { + Self::new() + } +} + impl Decoder for TtyDecoder { type Item = Chunk; type Error = Error; @@ -226,7 +232,7 @@ where }); util::stop_on_err(stream, |e| e.kind() != io::ErrorKind::UnexpectedEof) - .map_err(|e| crate::Error::from(e)) + .map_err(crate::Error::from) } mod util { |