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
+1
-1
@@ -409,7 +409,7 @@ macro_rules! _assert_snapshot_base {
|
||||
#[macro_export]
|
||||
macro_rules! assert_binary_snapshot {
|
||||
($name_and_extension:expr, $value:expr $(,)?) => {
|
||||
$crate::assert_binary_snapshot!($name_and_extension, $value, stringify!($value));
|
||||
$crate::assert_binary_snapshot!($name_and_extension, $value, stringify!($value))
|
||||
};
|
||||
|
||||
($name_and_extension:expr, $value:expr, $debug_expr:expr $(,)?) => {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#[test]
|
||||
fn test_binary_snapshot() {
|
||||
insta::assert_binary_snapshot!(".txt", b"test".to_vec());
|
||||
insta::assert_binary_snapshot!(".txt", b"test".to_vec())
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
||||
Reference in new issue
Block a user