-
Notifications
You must be signed in to change notification settings - Fork 68
Add [workspace.lints]
#547
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
Yeah, LGTM, just a couple of questions:
|
We need to update the CI rust to 1.74 first, otherwise the lints won't be picked up from the workspace.
Yeah, there might be a lot of errors. Incrementally sounds good! |
399a656
to
9a3157d
Compare
[workspace.lints]
to manifest[workspace.lints]
I was going through open PRs (github necromancy) to see if we could close something and decided to re-spin this. Only the first 2-3 commits are manual changes, the rest are mechanical clippy fixes (again...). Apologies for the noise in advance. |
dbg! does not use format specifiers and prints in stderr regardless of log output. Use log::debug! instead. Signed-off-by: Manos Pitsidianakis <[email protected]>
Replace type inferred raw pointer casts with .cast() method calls to make intent clearer. Signed-off-by: Manos Pitsidianakis <[email protected]>
casting usize as i32 might wrap around in 32-bit targets, we don't target them, but clippy complains. Signed-off-by: Manos Pitsidianakis <[email protected]>
Crates need to opt-in by setting: [lints] workspace = true In their Cargo.toml file. Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
Signed-off-by: Manos Pitsidianakis <[email protected]>
17ea1ed
to
bab70cd
Compare
Summary of the PR
This PR enables all crates of the staging workspace to share lints. With 1.74 it is now possible to define them in
Cargo.toml
.Note: In older versions you'll simply get a "warning: unused manifest key" when using cargo.
Requirements
Before submitting your PR, please make sure you addressed the following
requirements:
git commit -s
), and the commitmessage has max 60 characters for the summary and max 75 characters for each
description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafe
code is properly documented.