Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

clippy 0.1.70: 2023-03-18: Apply suggestions, disable false positives #30808

Closed
wants to merge 10 commits into from
Closed

clippy 0.1.70: 2023-03-18: Apply suggestions, disable false positives #30808

wants to merge 10 commits into from

Conversation

ilya-bobyr
Copy link
Contributor

Problem

Clippy does not like a few things in the current master

Summary of Changes

Apply suggestions, and disable a few false positives with an explanatory comment.

@codecov
Copy link

codecov bot commented Mar 21, 2023

Codecov Report

Merging #30808 (79c6840) into master (f4cde7a) will not change coverage.
The diff coverage is 18.4%.

@@           Coverage Diff           @@
##           master   #30808   +/-   ##
=======================================
  Coverage    81.4%    81.4%           
=======================================
  Files         725      725           
  Lines      203465   203465           
=======================================
  Hits       165740   165740           
  Misses      37725    37725           

@ilya-bobyr
Copy link
Contributor Author

I can split this into multiple PRs – one per package, if anyone thinks it would simplify the review process.

@CriesofCarrots
Copy link
Contributor

Can you please add to the problem statement details about why we care about lints from this particular version of nightly? (Also, see #30664 for discussion about which nightly the monorepo will adopt with rust v1.68)

@ilya-bobyr
Copy link
Contributor Author

Can you please add to the problem statement details about why we care about lints from this particular version of nightly? (Also, see #30664 for discussion about which nightly the monorepo will adopt with rust v1.68)

My bad. I should have checked the specific version of nightly that we use.
Seems like nor beta (which is currently 1.69.0-beta3) nor the nightly that we use (nightly-2023-02-08) show any warnings, unlike the actual nightly.

3 rules are triggered:

I wonder if the last 2 got improved in the nightly version of Clippy.
As, it does point to cases that match second and third rules in our codebase.

If we do not want to deal with this for now, I can probably just close it.

@CriesofCarrots
Copy link
Contributor

If we do not want to deal with this for now, I can probably just close it.

We tend to do these sorts of fixes in one fell swoop when we upgrade the version of rust on the master branch, which means we can usually avoid transient nightly warnings.

We could move forward with these changes, minus all the comments about redundant_async_block, as minor cleanup, but I'd also be fine with punting until we upgrade to rust v1.69

@ilya-bobyr
Copy link
Contributor Author

If we do not want to deal with this for now, I can probably just close it.

We tend to do these sorts of fixes in one fell swoop when we upgrade the version of rust on the master branch, which means we can usually avoid transient nightly warnings.

Makes sense.

We could move forward with these changes, minus all the comments about redundant_async_block, as minor cleanup, but I'd also be fine with punting until we upgrade to rust v1.69

I'll just close it for now. Sorry for the noise.
And thank you for looking into it so quickly!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants