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 clippy warnings #2029

Merged
merged 2 commits into from Aug 25, 2023
Merged

Fix clippy warnings #2029

merged 2 commits into from Aug 25, 2023

Conversation

tcharding
Copy link
Member

A new version clippy 0.1.72 (5680fa1 2023-08-23) just came out and we get a two new warnings. Fix them up.

Clippy emits:

  error: incorrect implementation of `clone` on a `Copy` type

As suggested use `*self` instead of each individual field.
Clippy emits a bunch of warnings of form:

  warning: useless use of `vec!`

As suggested, remove the vec and just use an array.
@tcharding
Copy link
Member Author

All PRs will need this to get past CI, please review/ack/merge @apoelstra (and @sanket1729). Thanks.

Copy link
Member

@apoelstra apoelstra left a comment

Choose a reason for hiding this comment

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

ACK 724be17

@apoelstra
Copy link
Member

Because these are tiny changes with no functional consequence, and CI is broken I'm just going to fast-track this.

@apoelstra apoelstra merged commit bd05e3f into rust-bitcoin:master Aug 25, 2023
29 checks passed
@tcharding tcharding deleted the 08-25-clippy branch August 28, 2023 23:41
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.

None yet

2 participants