Skip to content

chore(clippy): allow double_must_use on async_trait traits (clippy 1.99) - #43

Merged
luthermonson merged 1 commit into
mainfrom
fix/clippy-1.99
Oct 5, 2026
Merged

luthermonson merged 1 commit into
mainfrom
fix/clippy-1.99

Conversation

@luthermonson

Copy link
Copy Markdown
Contributor

Rust 1.99's clippy fires double_must_use on the three #[async_trait] traits in litewire-backend (ConnectionAuthenticator, BackendConn, Backend). The lint is triggered by the macro's expansion — async_trait puts a bare #[must_use] on methods returning Pin<Box<dyn Future>>, which is already #[must_use] — not by anything in our source.

Fix: a scoped #[allow(clippy::double_must_use, reason = ...)] on each trait. No code change.

Why now: rust-toolchain.toml pins channel = "stable", so CI picked up 1.99 the day it shipped and main + every open PR (incl. #41) went red on clippy.

Verified: cargo +1.99 clippy --workspace --all-targets --keep-going -- -D warnings is clean. double_must_use is a long-standing lint, so the MSRV 1.88 job won't flag it as unknown.

Rust 1.99's clippy fires double_must_use on the three #[async_trait]
traits: the macro emits a bare #[must_use] on methods that return a
Pin<Box<dyn Future>>, which is already must_use. The code is unchanged;
scope an allow (with reason) to each trait. CI floats to stable via
rust-toolchain.toml, so main and every PR went red the day 1.99 shipped.
@ephpm

ephpm Bot commented Oct 5, 2026 •

Copy link
Copy Markdown

ePHPm Preview — removed

Preview deployment has been torn down.

@ephpm

ephpm Bot commented Oct 5, 2026

Copy link
Copy Markdown

ePHPm Preview — deployed (health check pending)

URL https://ephpm-litewire-pr-43.preview.ephpm.dev
Framework PHP
PHP 8.5
Deployed in 60.7s

Preview updates automatically on each push to this PR.

@ephpm
ephpm Bot temporarily deployed to preview-pr-43 October 5, 2026 04:38 Inactive
@ephpm
ephpm Bot temporarily deployed to preview-pr-43 October 5, 2026 04:38 Inactive
@luthermonson
luthermonson merged commit f741c08 into main Oct 5, 2026
5 checks passed
@luthermonson
luthermonson deleted the fix/clippy-1.99 branch October 5, 2026 05:37

This branch was successfully deployed

1 active deployment
preview-pr-43 — dda53300 Deployed Oct 5, 2026 by ephpm[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant