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

ci: treewide: deny used_underscore_binding #31319

Merged
merged 7 commits into from
Apr 27, 2023

Conversation

ryoqun
Copy link
Contributor

@ryoqun ryoqun commented Apr 23, 2023

Problem

Using _-prefixed variables are odd: #31239 (comment)

Summary of Changes

Remove and deny them in the future.

Fixes #

@ryoqun ryoqun force-pushed the clippy-used-underscore-binding branch from 04d175d to c376497 Compare April 23, 2023 12:54
@ryoqun ryoqun changed the title Enforce used_underscore_binding Forbid used_underscore_binding Apr 23, 2023
@ryoqun ryoqun changed the title Forbid used_underscore_binding treewide: Forbid used_underscore_binding Apr 23, 2023
@ryoqun ryoqun changed the title treewide: Forbid used_underscore_binding treewide: forbid used_underscore_binding Apr 23, 2023
@ryoqun ryoqun changed the title treewide: forbid used_underscore_binding ci: treewide: forbid used_underscore_binding Apr 23, 2023
@codecov
Copy link

codecov bot commented Apr 23, 2023

Codecov Report

Merging #31319 (a867a1d) into master (2dcdfff) will decrease coverage by 0.1%.
The diff coverage is 52.9%.

@@            Coverage Diff            @@
##           master   #31319     +/-   ##
=========================================
- Coverage    81.5%    81.5%   -0.1%     
=========================================
  Files         734      734             
  Lines      207153   207147      -6     
=========================================
- Hits       168955   168939     -16     
- Misses      38198    38208     +10     

@ryoqun ryoqun changed the title ci: treewide: forbid used_underscore_binding ci: treewide: deny used_underscore_binding Apr 24, 2023
@ryoqun ryoqun force-pushed the clippy-used-underscore-binding branch from 0e8fb1c to 4d480a2 Compare April 24, 2023 05:38
@@ -78,6 +78,7 @@ nightly_clippy_allows=()
--deny=warnings \
--deny=clippy::default_trait_access \
--deny=clippy::integer_arithmetic \
--deny=clippy::used_underscore_binding \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just adding a comment here with ref to clippy-lint description: https://rust-lang.github.io/rust-clippy/master/#used_underscore_binding

apfitzge
apfitzge previously approved these changes Apr 24, 2023
Copy link
Contributor

@apfitzge apfitzge left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm - just get approval from the others for the actual removed vars/fields before merging

@ryoqun ryoqun force-pushed the clippy-used-underscore-binding branch from 6347179 to a867a1d Compare April 26, 2023 02:10
@ryoqun ryoqun requested a review from yihau April 27, 2023 00:06
@ryoqun
Copy link
Contributor Author

ryoqun commented Apr 27, 2023

@yihau could you approve this quickly? I've finished to collect all the stamps for this tree-wide small changes.

@ryoqun ryoqun merged commit a30830d into solana-labs:master Apr 27, 2023
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.

6 participants