From 96013802eb8cb8da86b5f6398e88375203cd5e28 Mon Sep 17 00:00:00 2001 From: Till Hoeppner Date: Thu, 23 Jul 2015 22:57:43 +0200 Subject: Support dynamic selection of decoders/encoders --- src/format/energymech.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/format/energymech.rs') diff --git a/src/format/energymech.rs b/src/format/energymech.rs index 1fdc537..0e46dce 100644 --- a/src/format/energymech.rs +++ b/src/format/energymech.rs @@ -151,7 +151,8 @@ impl<'a, R: 'a> Iterator for Iter<'a, R> where R: BufRead { } } -impl<'a, R: 'a> Decode<'a, R, Iter<'a, R>> for Energymech where R: BufRead { +impl<'a, R: 'a> Decode<'a, R> for Energymech where R: BufRead { + type Output = Iter<'a, R>; fn decode(&'a mut self, context: &'a Context, input: R) -> Iter { Iter { context: context, -- cgit v1.2.3