fix(tests): silence unused-variable lint in shorten closure #39

Closed
David wants to merge 1 commit from fix/unused-app-closure-RUS-4 into main
Owner

The shorten test closure in src/handlers/urls.rs bound app without
using it inside the closure body, tripping the unused-variables lint and
failing the build under -D warnings. Prefix the binding with an underscore
(_app) since the closure references the outer token, not the passed app.

#RUS-4

The `shorten` test closure in `src/handlers/urls.rs` bound `app` without using it inside the closure body, tripping the `unused-variables` lint and failing the build under `-D warnings`. Prefix the binding with an underscore (`_app`) since the closure references the outer `token`, not the passed app. #RUS-4
fix(tests): silence unused-variable lint in shorten closure
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped
963f4898c3
The `shorten` test closure in `src/handlers/urls.rs` bound `app` without
using it inside the closure body, tripping the `unused-variables` lint and
failing the build under `-D warnings`. Prefix the binding with an underscore
(`_app`) since the closure references the outer `token`, not the passed app.

#RUS-4
nrupard closed this pull request 2026-06-12 17:55:08 +02:00
All checks were successful
Create release / Create release from merged PR (pull_request) Has been skipped

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
a8n-tools/rus!39
No description provided.