Skip to content

Fix a bunch of clippy lints#627

Merged
apoelstra merged 8 commits intorust-bitcoin:masterfrom
apoelstra:2023-11--clippy
Nov 7, 2023
Merged

Fix a bunch of clippy lints#627
apoelstra merged 8 commits intorust-bitcoin:masterfrom
apoelstra:2023-11--clippy

Conversation

@apoelstra
Copy link
Copy Markdown
Member

Supercedes #615.

@tcharding
Copy link
Copy Markdown
Member

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

@apoelstra
Copy link
Copy Markdown
Member Author

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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member Author

cc @sanket1729 I think we need your ACK here.

Copy link
Copy Markdown
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
heap-coder added a commit to heap-coder/rust-miniscript that referenced this pull request Sep 27, 2025
7eccfdbee63bb3e97dd441fe0135e639667a829c clippy: whitelist iter_kv lint since it is broken (Andrew Poelstra)
6de288f1d03369ee9d8f86dcd740a02b7ecdb52a cargo fmt (Andrew Poelstra)
f9c4e533af2b0b3c3b07af6f632b9781eb04ae7f clippy: fix PartialOrd impl on an Ord type (Andrew Poelstra)
1f8dfe26211255a4ae53a00e60007af3d1d8d166 clippy: clean up iterator (Andrew Poelstra)
5ab7afefd32ce0edc585d81f3d15226829cb1f50 clippy: whitelist inapplicable lints (Andrew Poelstra)
223790623d0a01f3a991347920f0cb7417f957e8 clippy: use try_fold in place of fold in several places (Andrew Poelstra)
4f7782f9f8e14da99714b3b9c85b4820a74bd794 clippy: minor things (Andrew Poelstra)
a61f71a537e8920cf1a53e594617c3e318d1c41b clippy: eliminate a bunch of redundant `into_iter` calls (Andrew Poelstra)

Pull request description:

  Supercedes #615.

ACKs for top commit:
  tcharding:
    ACK 7eccfdbee63bb3e97dd441fe0135e639667a829c
  sanket1729:
    ACK 7eccfdbee63bb3e97dd441fe0135e639667a829c

Tree-SHA512: ea4f14f754b07c9ae127684e6ca1d9f121361a7be617d45a19af0269af735d2f420f59abdf15b943052b34cc9afba31cddc87d75a86694f8eefa0d672d4b031b
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