tokio_util::io::StreamReader
uses incorrect generic parameter for Sink
impl
#6642
Labels
tokio_util::io::StreamReader
uses incorrect generic parameter for Sink
impl
#6642
Version
Platform
Description
I think that the generic parameters are used incorrectly where
tokio-util
'sStreamReader
implementsSink
:tokio/tokio-util/src/io/stream_reader.rs
Lines 329 to 330 in 8480a18
It is written as though
StreamReader
's second parameter is its error type, which is not correct-- the second parameter is its buffer type.This breaks the ability to use
StreamReader
andSinkWriter
together. In this example the error message makes it clear that the types have become confused:The text was updated successfully, but these errors were encountered: