Enable clippy nursery lints and clear the warnings #143
No reviewers
Labels
No labels
animation
audio
blocked
bug report
controversial
documentation
easy
feature request
hard
medium
multiplayer
physics
ui
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
elsie/liuverse!143
Loading…
Reference in a new issue
No description provided.
Delete branch "clippy-nursery"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Enables
clippy::nurseryin[workspace.lints.clippy]and clears what it surfaces.Allowed globally (each fires well over ten times):
missing_const_for_fn,suboptimal_flops,too_long_first_doc_paragraph.Fixed:
option_if_let_else,useless_let_if_seq,redundant_clone,needless_collect,significant_drop_in_scrutinee,significant_drop_tightening,tuple_array_conversions,redundant_pub_crate,while_float,suspicious_operation_groupings,needless_pass_by_ref_mut, plus the machine-applicable ones.recursion_depth_exceeding_limit: nursery pulls inclippy::future_not_send, which overflows the trait solver onRenderer::new; fixed with a craterecursion_limitinliuverse-render.Audits the existing
Cargo.tomlallows against the new "ten expects warrant an allow" rule (added toAGENTS.md). Three did not qualify and were removed:uninlined_format_args(2),needless_pass_by_value(3),missing_errors_doc(4).just checkpasses.Merged
Merged into
mainas part of the batch (order: #136, #142, #137, #138, #141, #139, #140, #143). The batch carries a single major bump,1.1.2→2.0.0, so this branch's own bump commit was dropped when it was rebased;PROTOCOL_VERSIONstays 2.assets/baked/valla.binwas rebaked once at the end of the batch.On rebase the nursery lints also surfaced warnings in code the other seven branches had added — a redundant clone, a
pub(crate)item in a private module, acontains-then-insert, a needless by-valueVec, and mutex guards held across broadcasts — and those were fixed in the same commit.1801dd51f5tobe4ab3188c