-
Notifications
You must be signed in to change notification settings - Fork 71
Check for more Clippy lints #91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The same should be done in our other crates. |
All of our operation structures (example: error: item name ends with its containing module's name
--> src/operations/ping.rs:18:1
|
18 | pub struct OpPing;
| ^^^^^^^^^^^^^^^^^^
|
= note: `-D clippy::module-name-repetitions` implied by `-D clippy::pedantic`
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions
error: item name ends with its containing module's name
--> src/operations/ping.rs:26:1
|
26 | / pub struct ResultPing {
27 | | pub supp_version_maj: u8,
28 | | pub supp_version_min: u8,
29 | | }
| |_^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#module_name_repetitions The absolute name of the structure is What are you thoughts about that? |
That sounds good! We could eiither use |
Following the same logic we should also rename all of our Protobuf operations to remove the use super::generated_ops::ping::{OpPingProto, ResultPingProto}; which seems a bit weird if we do not fix as well. |
I will for now add |
As per parallaxsecond/parsec#91 adds the stronger lints. They currently all pass. Signed-off-by: Hugues de Valon <[email protected]>
As per parallaxsecond/parsec#91 Signed-off-by: Hugues de Valon <[email protected]>
As per parallaxsecond/parsec#91 Signed-off-by: Hugues de Valon <[email protected]>
The following command:
will enable all Clippy lints in all Parsec's code.
We should investigate which ones of those should be fixed.
The text was updated successfully, but these errors were encountered: