We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
read_exact
read
1 parent d9c44e1 commit ef0364fCopy full SHA for ef0364f
src/read/seek.rs
@@ -98,7 +98,7 @@ pub(crate) async fn read_cd<R: AsyncRead + AsyncSeek + Unpin>(
98
'outer: loop {
99
'inner: loop {
100
let mut buffer = [0; async_io_utilities::SUGGESTED_BUFFER_SIZE];
101
- if reader.read_exact(&mut buffer).await? == 0 {
+ if reader.read(&mut buffer).await? == 0 {
102
break 'inner;
103
}
104
0 commit comments