diff options
Diffstat (limited to 'src/format/energymech.rs')
-rw-r--r-- | src/format/energymech.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/format/energymech.rs b/src/format/energymech.rs index 5965dfa..ba82458 100644 --- a/src/format/energymech.rs +++ b/src/format/energymech.rs @@ -153,8 +153,8 @@ impl<'a> Iterator for Iter<'a> { } } -impl<'a> Decode<'a> for Energymech { - fn decode(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box<Iterator<Item = ::Result<Event<'a>>> + 'a> { +impl Decode for Energymech { + 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, @@ -163,8 +163,8 @@ impl<'a> Decode<'a> for Energymech { } } -impl<'a, W> Encode<'a, W> for Energymech where W: Write { - fn encode(&'a self, context: &'a Context, mut output: W, event: &'a Event) -> ::Result<()> { +impl Encode for Energymech { + 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, "[{}] <{}> {}", |