Skip to content

ci: fix clippy#428

Merged
Boog900 merged 4 commits intoCuprate:mainfrom
hinto-janai:clippy
Apr 8, 2025
Merged

ci: fix clippy#428
Boog900 merged 4 commits intoCuprate:mainfrom
hinto-janai:clippy

Conversation

@hinto-janai
Copy link
Copy Markdown
Member

What

Fixes CI with:

cargo clippy --fix

with some exceptions.

@github-actions github-actions Bot added A-p2p Area: Related to P2P. A-consensus Area: Related to consensus. A-cryptonight Area: Related to Cryptonight. A-storage Area: Related to storage. A-net Area: Related to networking. labels Apr 8, 2025
Comment thread p2p/p2p/src/broadcast.rs
tracing::debug!(
"{lag} transaction broadcast messages were missed, continuing."
);
continue;
Copy link
Copy Markdown
Member Author

@hinto-janai hinto-janai Apr 8, 2025

Choose a reason for hiding this comment

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

https://rust-lang.github.io/rust-clippy/master/index.html#needless_continue

Not sure how I feel about these, it guards against code being added/executed below it.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

hmm yeah, probably best to leave this one disabled.

@github-actions github-actions Bot added A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-workspace Area: Changes to a root workspace file or general repo file. labels Apr 8, 2025
@hinto-janai hinto-janai marked this pull request as ready for review April 8, 2025 18:12
@github-actions github-actions Bot removed the A-storage Area: Related to storage. label Apr 8, 2025
@Boog900 Boog900 merged commit 3ef6a96 into Cuprate:main Apr 8, 2025
11 checks passed
@hinto-janai hinto-janai deleted the clippy branch April 8, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-consensus Area: Related to consensus. A-cryptonight Area: Related to Cryptonight. A-dependency Area: Related to dependencies, or changes to a Cargo.{toml,lock} file. A-net Area: Related to networking. A-p2p Area: Related to P2P. A-workspace Area: Changes to a root workspace file or general repo file.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants