fix(ci): clippy clean on rust 1.94 (LC-187) #254
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lc-187-clippy-resolve-msg-author"
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?
Summary
Clippy (workspace, standalone)CI job failed with three errors on rust 1.94 (the version pinned inci-build/Dockerfile.webviaghcr.io/niceguyit/rust-builder-glibc:v1.0.0-rust1.94-trixie).clippy::too_many_argumentsonresolve_msg_author(server/src/routes/mod.rs:154). 9 args, clippy's default ceiling is 7. EachOption<i64>/Option<&str>is read straight off aRawMessagerow; bundling them into a synthetic-actor struct would force the 9resolve_msg_authorcallsites plus the 6 siblingoutgoing_actorcallsites to build the same struct from the same six fields. Suppress with#[allow(clippy::too_many_arguments)]and document the choice in the function's doc comment so the next reader doesn't re-litigate.clippy::manual_repeat_nonserver/tests/spike_image_decoder_hostile_corpus.rs:78,96. Rust 1.94 stabilizedstd::iter::repeat_n(x, n)as the canonical form ofstd::iter::repeat(x).take(n). Migrate both call sites.clippy::byte_char_slicesonserver/tests/routes_media_bridge_avatar_proxy.rs:167. The&[b'P', b'N', b'G', ...]array of byte literals is more cleanly written as a byte string literalb"PNGBYTES". Comment moved above the binding.Per the LC-187 ticket description, this is the standing "CI check workflow failure" issue; cite this ticket rather than opening a new one for fmt/lint drift.
Test plan
./dev/cargo clippy --workspace --all-targets --features standalone -- -D warningsclean../dev/cargo clippy --workspace --all-targets --no-default-features --features saas -- -D warningsclean../dev/cargo fmt --all -- --checkclean.