refactor: optimize code based on cargo clippy

Signed-off-by: wangcundashang <wangcundashang@qq.com>
pull/1077/head
wangcundashang 6 months ago
parent b7be2183d5
commit e1006a5be1

@ -144,7 +144,7 @@ impl<T: BufRead, U: BufRead> BufRead for Chain<T, U> {
let this = self.project();
if !*this.done_first {
match futures_core::ready!(this.first.poll_fill_buf(cx)) {
Ok(buf) if buf.is_empty() => {
Ok([]) => {
*this.done_first = true;
}
Ok(buf) => return Poll::Ready(Ok(buf)),

Loading…
Cancel
Save