Skip to content

Remove trailing semicolon from assert_binary_snapshot! macro body - #946

Merged
max-sixty merged 1 commit into
mitsuhiko:masterfrom
dualfroz:fix/binary-snapshot-trailing-semicolon
Oct 10, 2026
Merged

max-sixty merged 1 commit into
mitsuhiko:masterfrom
dualfroz:fix/binary-snapshot-trailing-semicolon

Conversation

@dualfroz

@dualfroz dualfroz commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

#940 removed the trailing semicolons from the serialization macro bodies but missed the two-argument arm of assert_binary_snapshot!, so calling it at the end of a block still warns with semicolon_in_expressions_from_non_local_macros on newer toolchains. this drops that semicolon and the one in test_binary.rs, so the test covers it (fails on nightly without the fix, the pinned 1.95 doesn't fire the lint here).

#940 removed the trailing semicolons from the serialization macro bodies but missed the two-argument arm of assert_binary_snapshot!, so calling it at the end of a block still warns with semicolon_in_expressions_from_non_local_macros on newer toolchains. this drops that semicolon and the one in test_binary.rs, so the test covers it.
@max-sixty
max-sixty merged commit 4b270ba into mitsuhiko:master Oct 10, 2026
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.

2 participants