Skip to content

446#459

Merged
RAprogramm merged 1 commit into
mainfrom
446
Jul 5, 2026
Merged

446#459
RAprogramm merged 1 commit into
mainfrom
446

Conversation

@RAprogramm

Copy link
Copy Markdown
Owner

Closes #446

Teaches clippy to lint format arguments inside the exported macros (ensure!, fail!, app_error!) — anyhow 1.0.100 parity.

Applied #[clippy::format_args] to the macro definitions. anyhow gates the attribute behind a build probe only for rustc < 1.85; masterror's MSRV is 1.96, so it's applied unconditionally — no build.rs changes.

Verification: scratch crate with a non-inlined format arg through app_error!clippy::uninlined_format_args fires with the correct suggestion; negative control without the attribute produces no warning. Full workspace suite, clippy zero warnings, nightly fmt — all green. One file changed (+12 lines).

@codecov

codecov Bot commented Jul 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@RAprogramm RAprogramm merged commit 0cd0c57 into main Jul 5, 2026
29 checks passed
@RAprogramm RAprogramm deleted the 446 branch July 5, 2026 07:05
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.

Teach clippy to lint format args inside ensure!/fail!

1 participant