Remove trailing semicolon from assert_binary_snapshot! macro body
#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.
This commit is contained in:
1 parent
1b8f2fefcf
commit
bd404ed8a5
3 files changed
+8
-2
No files matched your search
@@ -2,6 +2,12 @@
|
||||
|
||||
All notable changes to insta and cargo-insta are documented here.
|
||||
|
||||
## Unreleased
|
||||
|
||||
- Remove the trailing semicolon from the `assert_binary_snapshot!` macro body,
|
||||
which #940 missed, to avoid compiler warnings when used in expression
|
||||
position.
|
||||
|
||||
## 1.49.0
|
||||
|
||||
- Allow `Option<&OsStr>` snapshot names, such as `Path::file_name()`,
|
||||
|
||||
Reference in new issue
Block a user