mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-21 02:33:23 +00:00
H3: remove superfluous stream / reader conversion for ReadToEnd
This commit is contained in:
committed by
Jean-Christophe BEGUE
parent
a90ad6e8b8
commit
34088990db
@@ -157,14 +157,6 @@ impl ReadToEnd {
|
||||
state: RecvBodyState::Receiving(BytesMut::with_capacity(capacity)),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn into_reader(self) -> BodyReader {
|
||||
BodyReader::new(self.recv, self.conn, self.stream_id)
|
||||
}
|
||||
|
||||
pub fn into_stream(self) -> RecvBodyStream {
|
||||
RecvBodyStream::new(self.recv, self.conn, self.stream_id)
|
||||
}
|
||||
}
|
||||
|
||||
enum RecvBodyState {
|
||||
|
||||
Reference in New Issue
Block a user