diff options
author | Till Hoeppner | 2015-07-23 22:57:43 +0200 |
---|---|---|
committer | Till Hoeppner | 2015-07-23 22:57:43 +0200 |
commit | 96013802eb8cb8da86b5f6398e88375203cd5e28 (patch) | |
tree | c6e7b69a84e52a59bfec2a14d49058dc185964ae /src/format/weechat3.rs | |
parent | a4ed13e46fcef39d53126b3dc11d4f3705237b60 (diff) | |
download | ilc-96013802eb8cb8da86b5f6398e88375203cd5e28.tar.gz ilc-96013802eb8cb8da86b5f6398e88375203cd5e28.tar.xz ilc-96013802eb8cb8da86b5f6398e88375203cd5e28.zip |
Support dynamic selection of decoders/encoders
Diffstat (limited to 'src/format/weechat3.rs')
-rw-r--r-- | src/format/weechat3.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/format/weechat3.rs b/src/format/weechat3.rs index 9e07e92..3ff781c 100644 --- a/src/format/weechat3.rs +++ b/src/format/weechat3.rs @@ -137,8 +137,9 @@ impl<'a, R: 'a> Iterator for Iter<'a, R> where R: BufRead { } } -impl<'a, R: 'a> Decode<'a, R, Iter<'a, R>> for Weechat3 where R: BufRead { - fn decode(&'a mut self, context: &'a Context, input: R) -> Iter<R> { +impl<'a, I: 'a> Decode<'a, I> for Weechat3 where I: BufRead { + type Output = Iter<'a, I>; + fn decode(&'a mut self, context: &'a Context, input: I) -> Iter<'a, I> { Iter { context: context, input: input, |