From ea940fcb74abce67b927788e4f9f64fc63073d37 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sat, 23 Nov 2019 02:01:09 +0100 Subject: 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. --- examples/parselog.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'examples/parselog.rs') 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; - } + }, } } } -- cgit