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

Fix new clippy lints #2096

Merged
merged 4 commits into from
Jul 4, 2024
Merged

Fix new clippy lints #2096

merged 4 commits into from
Jul 4, 2024

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Jul 3, 2024

Looks like the newer compiler version is more aggressive detecting dead code, and flags a bunch of fields/functions as unused. Some of those are behind feature flags, others might legitimately be unused. However, I just used an allow to quickly unblock other PRs that are failing because of these lints without digging deeper.

Also ran a cargo update for good measure, but not bumping any semver-major dependency versions.

Looks like the newer compiler version is more aggressive detecting dead code, and flags a bunch of fields/functions as unused. Some of those are behind feature flags, others might legitimately be unused.
However, I just used an `allow` to quickly unblock other PRs that are failing because of these lints without digging deeper.

Also ran a `cargo update` for good measure, but not bumping any semver-major dependency versions.
@Swatinem Swatinem enabled auto-merge (squash) July 4, 2024 07:49
@Swatinem Swatinem merged commit 9cf9afb into master Jul 4, 2024
13 checks passed
@Swatinem Swatinem deleted the swatinem/update-n-clippy branch July 4, 2024 07:59
szokeasaurusrex added a commit that referenced this pull request Jul 22, 2024
szokeasaurusrex added a commit that referenced this pull request Nov 5, 2024
We added a blanket `allow(dead_code)` for the entire api module in #2096 because of some new clippy lints which were failing.

Here, we remove the blanket `allow(dead_code)` and only allow dead code for the specific lines where it occurs. It might not be possible to remove these because serde might rely on their presence.
szokeasaurusrex added a commit that referenced this pull request Nov 5, 2024
We added a blanket `allow(dead_code)` for the entire api module in #2096
because of some new clippy lints which were failing.

Here, we remove the blanket `allow(dead_code)` and only expect dead code
for the specific lines where it occurs. It might not be possible to
remove these because serde might rely on their presence.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants