Conversation
Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
…re some left for manuel fix Signed-off-by: Jiaxiao Zhou (Mossaka) <duibao55328@gmail.com>
|
Our (Fastly's wasmtime) team has found clippy suggestions to not be appropriate for a CI check. They are unstable across versions of clippy, and so create churn around new toolchain releases, and only rarely find correctness issues with code that rustc warnings don't find. |
|
@pchickey ack, do you think the changed code by running clippy is useful or not? I can delete the CI part but leave the rest of the changes in this PR. Obviously this is just one-time fix but I do think some of the changes are meaningful and can potentially make code more performant. |
|
I don't personally agree with all of clippy's changes, but many of them I think are fine to land, yes. I'm not a huge fan, for example, of changes like let s = match foo {
A(..) => format!(...),
B(..) => format!(...),
C => "...".to_string(),
D(..) => format!(...),
};where here while I don't disagree it's probably more performant to do Things like removing explicit |
|
I don't have a strong opinion here, meaning that I am okay with closing this PR without merging it. I do agree with some of the assements here
Perhaps there is a middle ground here in which I think will benefit this project as a whole. I am thinking about
Futhermore, the work we've done to create this allow-list for this project can potentially apply to other rust projects in the BCA. I am totally aware the assement of a list might be time-consuming and this is probably not the best time to do this work. |
|
Personally I'm not a fan of an allow-fail CI job since that means it'll fail quickly and won't be maintained. Worse still contributors will feel obligated to make it pass and get confused when it's their code that's not causing the problems. Additionally if the purpose is to not use clippy I would at least personally prefer to not have configuration files all pertaining to clippy and its lints. That also gives off the confusing impression that clippy is regularly run, which it's not. I unfortunately don't see a middle ground here other than "we'll accept PRs where folks feel clippy lints if they feel so inclined to do so" along with reviewing the PR on its own merits independent of whateve clippy has to say. |
|
Sounds good I will close this PR. |
This PR adds a Clippy job to CI. This can wait until #956 and #1027 merged in to main.
The rest of the changes are auto-generated by
cargo clippy --all --fixand then followed bycargo fmt --all