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 a bunch of clippy lints #627

Merged
merged 8 commits into from
Nov 7, 2023

Conversation

apoelstra
Copy link
Member

Supercedes #615.

@tcharding
Copy link
Member

Ha! linting like your a junior dev, thanks bro ... we need some junior devs around here.

@apoelstra
Copy link
Member Author

CI is failing because of rust-lang/rust-clippy#11752. Will need to whitelist this lint.

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 57eb924

@tcharding
Copy link
Member

tcharding commented Nov 3, 2023

If you were a junior dev I'd make you iterate on this one. Perhaps squash the whole thing into a single commit, you don't want all those commits in the index for ever :)

(I'm still chuckling, the changes are all mixed up, random stuff in into_iter patch, into_iter changes in other patches ... and you rustfmt'ed like @stevenroose :)

@tcharding
Copy link
Member

The CI fail is legit, just got an unused import in there.

Also fixes a bunch of unused imports that are detected by the latest
rustc nightly. (One is a wildcard import that actually imports nothing;
the other are prelude things in a private prelude module.)
@apoelstra apoelstra force-pushed the 2023-11--clippy branch 2 times, most recently from 89dd79e to 1d70468 Compare November 3, 2023 21:17
Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

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

ACK 7eccfdb

@apoelstra
Copy link
Member Author

cc @sanket1729 I think we need your ACK here.

Copy link
Member

@sanket1729 sanket1729 left a comment

Choose a reason for hiding this comment

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

ACK 7eccfdb

@apoelstra apoelstra merged commit c94deab into rust-bitcoin:master Nov 7, 2023
@apoelstra apoelstra deleted the 2023-11--clippy branch November 7, 2023 16:26
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