-
Notifications
You must be signed in to change notification settings - Fork 10
Start using clippy #10
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
Conversation
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
This use of `map` is *very* non-idiomatic. Signed-off-by: Nicholas Nethercote <[email protected]>
Note: the MSRV for this is 1.73. Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
|
Using clippy is very common. It has a lot of lints and not all of them are equally useful or important, so customizing the setup to ignore lints you don't care about is certainly an option, but I haven't done that here. My first contribution here, so let me know if I've done anything wrong, and I'm happy to adjust things as necessary. |
|
Info on individual lints is here: https://rust-lang.github.io/rust-clippy/master/index.html |
|
I certainly had a todo for clippifying the tree, thanks for the series. Will take a look through shortly. |
|
Looks like we need a reformat as part of 144710b. Otherwise all looks good! |
|
(and no issues with the MSRV, we don't have/need any specific guarantees there) |
Ah, that's the problem where on embedded platforms it's optionally using |
Sorry ignore that, those parts weren't touched in this PR. |
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
|
I fixed the fmt error. |
|
hm, may also need a |
|
Signed-off-by: Nicholas Nethercote <[email protected]>
Having no default method seems fine here. Signed-off-by: Nicholas Nethercote <[email protected]>
Signed-off-by: Nicholas Nethercote <[email protected]>
|
There was a |
|
Thanks! Looks like the |
Clippy is a useful tool. This PR fixes/silences all the warnings it finds, and enables it in CI.