diff options
author | Till Hoeppner | 2015-06-11 20:56:59 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-06-11 20:56:59 +0200 |
commit | ccc9f5e8eaa84579da610ea0d90d18596078bac7 (patch) | |
tree | 52bed0ed50693bb9f5bbdc52fa81d7e1edfb855c /src/freq.rs | |
parent | 8361e508303d1573db7a0a5e892cfe2bdf42ffbb (diff) | |
download | ilc-ccc9f5e8eaa84579da610ea0d90d18596078bac7.tar.gz ilc-ccc9f5e8eaa84579da610ea0d90d18596078bac7.tar.xz ilc-ccc9f5e8eaa84579da610ea0d90d18596078bac7.zip |
Fix binaries and eliminate warnings
Diffstat (limited to 'src/freq.rs')
-rw-r--r-- | src/freq.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/freq.rs b/src/freq.rs index 987499a..25810e7 100644 --- a/src/freq.rs +++ b/src/freq.rs @@ -21,7 +21,7 @@ use std::collections::hash_map::*; use chrono::offset::fixed::FixedOffset; use chrono::naive::date::NaiveDate; -use ilc::event::Event::*; +use ilc::event::{ Event, Type }; use ilc::context::Context; use ilc::format::{ self, Decode }; @@ -51,7 +51,7 @@ fn main() { override_date: NaiveDate::from_ymd(2015, 6, 10) }; - let mut parser = format::energymech::Energymech; + let mut parser = format::weechat3::Weechat3; for e in parser.decode(&context, stdin.lock()) { let m = match e { Ok(m) => m, @@ -59,7 +59,7 @@ fn main() { }; match m { - Msg { ref from, ref content, .. } => { + Event { ty: Type::Msg { ref from, ref content, .. }, .. } => { let nick = strip_nick(from); if stats.contains_key(nick) { let p: &mut Person = stats.get_mut(nick).unwrap(); |