fix(tests): silence clippy unused-variable to unblock CI #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/clippy-unused-app-RUS-3"
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?
What
The
check.ymlCI workflow added in #36 runscargo clippywith-D warnings. That promotes a pre-existingunused_variableslint inmainto a hard error, so #36's CI fails at the clippy step even after the fmt debt was cleared by #37.The offending code is in the
shorten_same_url_twice_returns_same_codetest insrc/handlers/urls.rs: theshortenclosure bindsapp: &_but never reads it. This fix prefixes the binding with an underscore (_app) per clippy's own suggestion. Behavior is unchanged.Context
Companion to #37 (fmt). #36 introduced the repo's first CI and surfaced two latent issues in
main: formatting (fixed by #37) and this clippy warning. With both merged, #36 needs one more sync withmainand its CI should go green.Verification
CI on this branch is the source of truth for whether clippy is now clean (no local cargo available). If clippy halts on a further warning, a follow-up commit will address it.
#RUS-3