diff options
Diffstat (limited to 'examples/tinyhttp.rs')
-rw-r--r-- | examples/tinyhttp.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/tinyhttp.rs b/examples/tinyhttp.rs index 9ac2806e..732da0d6 100644 --- a/examples/tinyhttp.rs +++ b/examples/tinyhttp.rs @@ -96,8 +96,7 @@ struct Http; /// Implementation of encoding an HTTP response into a `BytesMut`, basically /// just writing out an HTTP/1.1 response. -impl Encoder for Http { - type Item = Response<String>; +impl Encoder<Response<String>> for Http { type Error = io::Error; fn encode(&mut self, item: Response<String>, dst: &mut BytesMut) -> io::Result<()> { |