paritytech / paritytech/parity-common
Silence uint warns
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 311
- Forks
- 245
- PR merge metrics
- No merged PRs in 30d
Description
Hello! I'm having a hard time silencing the warns from uint initialization. I tried adding allow = ["clippy::ptr_offset_with_cast"] to .clippy.toml but this hides another warns from the code. If you guys could suggest a solution to this. Also, if this is more an issue with rust-clippy, no problem, I can move this issue there.

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Begin with the warning shown in the attached image and the existing .clippy.toml, then reproduce the uint-initialization warnings and identify which rust-clippy lint emits them. Done means those warnings are silenced without hiding the other warning mentioned in the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100