diff options
author | Christian Duerr <contact@christianduerr.com> | 2019-11-23 02:01:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-23 02:01:09 +0100 |
commit | ea940fcb74abce67b927788e4f9f64fc63073d37 (patch) | |
tree | cb0c9db4008e5fec07c9655dea29513614f5f7b9 /examples/parselog.rs | |
parent | a035f334a108f4a694cf022e063edb9c8ac349ad (diff) | |
download | r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.tar.gz r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.tar.bz2 r-alacritty-vte-ea940fcb74abce67b927788e4f9f64fc63073d37.zip |
Update to Rust 2018
This moves all crates in the workspace to the latest Rust standard and
resolves various style and formatting issues.
Fixes #32.
Diffstat (limited to 'examples/parselog.rs')
-rw-r--r-- | examples/parselog.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/parselog.rs b/examples/parselog.rs index b63bcf8..83ba2b5 100644 --- a/examples/parselog.rs +++ b/examples/parselog.rs @@ -1,8 +1,8 @@ //! Parse input from stdin and log actions on stdout -extern crate vte; - use std::io::{self, Read}; +use vte; + /// A type implementing Perform that just logs actions struct Log; @@ -65,11 +65,11 @@ fn main() { for byte in &buf[..n] { statemachine.advance(&mut parser, *byte); } - } + }, Err(err) => { println!("err: {}", err); break; - } + }, } } } |