diff options
author | Till Höppner | 2016-01-23 20:13:30 +0100 |
---|---|---|
committer | Till Höppner | 2016-01-23 20:13:30 +0100 |
commit | ee96e7d79ef9e5505a2b7440cd5dc544da23540d (patch) | |
tree | 5f26474085405026f82d301acf2e54ffbfe8e111 /src/format/mod.rs | |
parent | 0a38f014cd5e24eb64fd6f27f3282c292c85273b (diff) | |
download | ilc-ee96e7d79ef9e5505a2b7440cd5dc544da23540d.tar.gz ilc-ee96e7d79ef9e5505a2b7440cd5dc544da23540d.tar.xz ilc-ee96e7d79ef9e5505a2b7440cd5dc544da23540d.zip |
Restore full functionality
Diffstat (limited to 'src/format/mod.rs')
-rw-r--r-- | src/format/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/format/mod.rs b/src/format/mod.rs index 370a92b..ff3a328 100644 --- a/src/format/mod.rs +++ b/src/format/mod.rs @@ -25,8 +25,8 @@ use context::Context; pub mod energymech; pub mod weechat3; -//pub mod binary; -//pub mod msgpack; +pub mod binary; +pub mod msgpack; pub trait Encode { fn encode<'a>(&'a self, context: &'a Context, output: &'a mut Write, event: &'a Event) -> ::Result<()>; @@ -48,8 +48,8 @@ pub fn decoder(format: &str) -> Option<Box<Decode>> { match format { "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), -// "binary" => Some(Box::new(binary::Binary)), -// "msgpack" => Some(Box::new(msgpack::Msgpack)), + "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } @@ -58,8 +58,8 @@ pub fn encoder(format: &str) -> Option<Box<Encode>> { match format { "energymech" => Some(Box::new(energymech::Energymech)), "weechat3" => Some(Box::new(weechat3::Weechat3)), -// "binary" => Some(Box::new(binary::Binary)), -// "msgpack" => Some(Box::new(msgpack::Msgpack)), + "binary" => Some(Box::new(binary::Binary)), + "msgpack" => Some(Box::new(msgpack::Msgpack)), _ => None } } |