unused_qualification lint warnings
Maintainers usually reply within 1 day
@allan2 is already working on this.
Since Oct 25, 2024.
Assessment
This issue has not been assessed yet.
Description
When running Clippy, there are lots of warnings like
warning: unnecessary qualification
--> crates\win-api-wrappers\src\thread.rs:175:54
|
175 | ThreadAttributeType::ParentProcess(_) => mem::size_of::<HANDLE>(),
| ^^^^^^^^^^^^^^^^^^^^^^
|
help: remove the unnecessary path segments
|
175 - ThreadAttributeType::ParentProcess(_) => mem::size_of::<HANDLE>(),
175 + ThreadAttributeType::ParentProcess(_) => size_of::<HANDLE>(),
std::mem::size_of and mem::size_of both fail this lint.
I suggest removing the lint if the maintainers prefer to use mem::size_of, or to accept the lint suggestion, i.e., unqualified size_of.
I can make a PR for this pending guidance.
#1068 related
- Dominant language
- Rust
- Stars
- 161
- Forks
- 30
- Avg merge
- 2d 21h
- Merged PRs (30d)
- 38
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
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.
More from Devolutions/devolutions-gateway
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Devolutions/devolutions-gateway#1993 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 55/100
Devolutions/devolutions-gateway#1994 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 76/100
Devolutions/devolutions-gateway#1983 ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Devolutions/devolutions-gateway#1973 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
Devolutions/devolutions-gateway#1930 ·
Maintainers usually reply within 1 day
All issues in Devolutions/devolutions-gateway
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
check: a failed re-read of the model file before binding is labelled E_THETA_LEVEL_BINDING on [parameters]Possibly taken @TeunP claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Devolutions/picky-rs#546 · 1 comment ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day