From b2d8cce90a50e7e68d425a6c692ce401d63de171 Mon Sep 17 00:00:00 2001 From: Till Höppner Date: Sat, 23 Jan 2016 17:18:39 +0100 Subject: Fix compilation, fix dependencies --- src/format/energymech.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/format/energymech.rs') 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>> + 'a> { +impl Decode for Energymech { + fn decode<'a>(&'a mut self, context: &'a Context, input: &'a mut BufRead) -> Box>> + '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, "[{}] <{}> {}", -- cgit v1.2.3