From a02f3c09482807220c5642b0e03d8f2d8aea243a Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Wed, 1 Apr 2015 23:29:45 +0200 Subject: Don't match with regex anymore --- src/main.rs | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index b5f65a9..4bf22f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,7 +3,7 @@ extern crate ilc; extern crate docopt; -extern crate "rustc-serialize" as rustc_serialize; +extern crate rustc_serialize; extern crate libc; extern crate regex; @@ -14,16 +14,26 @@ use docopt::Docopt; use ilc::format::{ self, Encode, Decode }; -static USAGE: &'static str = " +static USAGE: &'static str = r#" +d8b 888 +Y8P 888 + 888 +888 888 .d8888b +888 888 d88P" +888 888 888 +888 888 Y88b. +888 888 "Y8888P + A converter and statistics utility for IRC log files. Usage: ilc parse ... + ilc Options: -h --help Show this screen. -v --version Show the version (duh). -"; +"#; #[derive(RustcDecodable, Debug)] struct Args { @@ -49,7 +59,7 @@ fn main() { let iter = parser.decode(f); let events: Vec<_> = iter.collect(); for e in events { - parser.encode(io::stdout(), &e.unwrap()); + drop(parser.encode(io::stdout(), &e.unwrap())); } } } -- cgit v1.2.3