Skip to content

Commit f80bbec

Browse files
authored
io: simplify check for empty slice (#6293)
1 parent eab26a6 commit f80bbec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tokio/src/io/util/chain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ where
114114

115115
if !*me.done_first {
116116
match ready!(me.first.poll_fill_buf(cx)?) {
117-
buf if buf.is_empty() => {
117+
[] => {
118118
*me.done_first = true;
119119
}
120120
buf => return Poll::Ready(Ok(buf)),

0 commit comments

Comments
 (0)