Skip to content

Commit

Permalink
refactor: optimize code based on cargo clippy
Browse files Browse the repository at this point in the history
Signed-off-by: wangcundashang <[email protected]>
  • Loading branch information
wangcundashang committed Jun 19, 2024
1 parent b7be218 commit e1006a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/read/chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)),
Expand Down

0 comments on commit e1006a5

Please sign in to comment.