(buf: &[u8])
| 22 | } |
| 23 | |
| 24 | fn utf8(buf: &[u8]) -> Result<&str, io::Error> { |
| 25 | str::from_utf8(buf) |
| 26 | .map_err(|_| io::Error::new(io::ErrorKind::InvalidData, "Unable to decode input as UTF8")) |
| 27 | } |
| 28 | |
| 29 | impl Decoder for MultiLineCodec { |
| 30 | type Item = String; |