Skip to content
This repository was archived by the owner on Nov 30, 2022. It is now read-only.

Enable clippy in CI#152

Merged
apoelstra merged 4 commits intorust-bitcoin:masterfrom
tcharding:clippy
May 10, 2022
Merged

Enable clippy in CI#152
apoelstra merged 4 commits intorust-bitcoin:masterfrom
tcharding:clippy

Conversation

@tcharding
Copy link
Copy Markdown
Member

@tcharding tcharding commented Apr 26, 2022

Enable running clippy on CI, involves doing:

  • Add config file
  • Clear all clippy warnings
  • Add CI job to run clippy

tcharding added 4 commits May 10, 2022 12:55
In preparation for being able to run `clippy` in the CI pipeline; add a
config file that configures `clippy` with our current MSRV.
Clippy emits:

 warning: redundant field names in struct initialization

Use field init shorthand.
Clippy emits:

 warning: unneeded late initalization

As suggested use a single statement to declare and set the local `inner`
variable.
To keep the codebase nice and clean we can run `clippy` as part of the
CI pipeline.

Enable `clippy` in a CI job.
Copy link
Copy Markdown
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 d31b579

@apoelstra apoelstra merged commit ab09e0e into rust-bitcoin:master May 10, 2022
@tcharding tcharding deleted the clippy branch May 25, 2022 00:20
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