From bf1667a904e411dc1ed0386bf6d8532608b5e3f7 Mon Sep 17 00:00:00 2001 From: Michael Sproul Date: Fri, 22 Oct 2021 04:49:51 +0000 Subject: [PATCH] Fix test warnings on Rust 1.56.0 (#2743) ## Issue Addressed Continuation of #2728, fix the fork choice tests for Rust 1.56.0 so that `unstable` is free of warnings. CI will be broken until this PR merges, because we strictly enforce the absence of warnings (even for tests) --- consensus/fork_choice/tests/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/consensus/fork_choice/tests/tests.rs b/consensus/fork_choice/tests/tests.rs index 08b098707f..068b6387f0 100644 --- a/consensus/fork_choice/tests/tests.rs +++ b/consensus/fork_choice/tests/tests.rs @@ -602,7 +602,7 @@ macro_rules! assert_invalid_block { $err, $( ForkChoiceError::InvalidBlock($error) ) |+ $( if $guard )? ), - ); + ) }; } @@ -710,7 +710,7 @@ macro_rules! assert_invalid_attestation { ), "{:?}", $err - ); + ) }; }