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/binary.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/format/binary.rs') diff --git a/src/format/binary.rs b/src/format/binary.rs index 4c2e151..a1ca12d 100644 --- a/src/format/binary.rs +++ b/src/format/binary.rs @@ -44,7 +44,8 @@ impl<'a, W> Encode<'a, W> for Binary where W: Write { } } -impl<'a, R: 'a> Decode<'a, R, Iter<'a, R>> for Binary where R: BufRead { +impl<'a, R: 'a> Decode<'a, R> for Binary where R: BufRead { + type Output = Iter<'a, R>; fn decode(&'a mut self, _context: &'a Context, input: R) -> Iter { Iter { _phantom: PhantomData, input: input } } -- cgit v1.2.3