Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: optimize code based on cargo clippy #1077

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@
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 All @@ -165,7 +165,7 @@
}
}

#[cfg(all(test, default))]

Check failure on line 168 in src/io/read/chain.rs

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-latest, beta)

unexpected `cfg` condition name: `default`

Check failure on line 168 in src/io/read/chain.rs

View workflow job for this annotation

GitHub Actions / Build and test (ubuntu-latest, nightly)

unexpected `cfg` condition name: `default`

Check failure on line 168 in src/io/read/chain.rs

View workflow job for this annotation

GitHub Actions / Build and test (macOS-latest, beta)

unexpected `cfg` condition name: `default`
mod tests {
use crate::io;
use crate::prelude::*;
Expand Down
Loading