mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-18 00:00:09 +02:00
io: simplify check for empty slice (#6293)
This commit is contained in:
@@ -114,7 +114,7 @@ where
|
||||
|
||||
if !*me.done_first {
|
||||
match ready!(me.first.poll_fill_buf(cx)?) {
|
||||
buf if buf.is_empty() => {
|
||||
[] => {
|
||||
*me.done_first = true;
|
||||
}
|
||||
buf => return Poll::Ready(Ok(buf)),
|
||||
|
||||
Reference in New Issue
Block a user