paritytech / paritytech/parity-common

Silence uint warns

Open
#660 2 comments 0 reactions 0 assignees View on GitHub

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.

image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.