diff options
author | Till Höppner | 2016-01-23 17:18:39 +0100 |
---|---|---|
committer | Till Höppner | 2016-01-23 17:18:39 +0100 |
commit | b2d8cce90a50e7e68d425a6c692ce401d63de171 (patch) | |
tree | a7bca6ea7654eaa4768424e2969bcfd4b48c89f4 /src/format/weechat3.rs | |
parent | 71984f6cf07d3205ebfa3ffada41cf182236bfd4 (diff) | |
download | ilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.tar.gz ilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.tar.xz ilc-b2d8cce90a50e7e68d425a6c692ce401d63de171.zip |
Fix compilation, fix dependencies
Diffstat (limited to 'src/format/weechat3.rs')
-rw-r--r-- | src/format/weechat3.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/weechat3.rs b/src/format/weechat3.rs index 118bd3b..92da0e0 100644 --- a/src/format/weechat3.rs +++ b/src/format/weechat3.rs @@ -139,8 +139,8 @@ impl<'a> Iterator for Iter<'a> { } } -impl<'a> Decode<'a> for Weechat3 { - fn decode(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> { +impl Decode for Weechat3 { + fn decode<'a>(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> { Box::new(Iter { context: context, input: input, @@ -149,8 +149,8 @@ impl<'a> Decode<'a> for Weechat3 { } } -impl<'a, W> Encode<'a, W> for Weechat3 where W: Write { - fn encode(&'a self, context: &'a Context, mut output: W, event: &'a Event) -> ::Result<()> { +impl Encode for Weechat3 { + fn encode<'a>(&'a self, context: &'a Context, mut output: &'a mut Write, event: &'a Event) -> ::Result<()> { match event { &Event { ty: Type::Msg { ref from, ref content, .. }, ref time, .. } => { try!(writeln!(&mut output, "{}\t{}\t{}", |