From 3644171738b47fb90fb6ed57a3fa47dada581475 Mon Sep 17 00:00:00 2001 From: Deirdre Connolly Date: Tue, 8 Feb 2022 00:56:32 -0500 Subject: [PATCH] Use string literal to format unreachable message (#3479) --- zebra-chain/src/transaction/sighash.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zebra-chain/src/transaction/sighash.rs b/zebra-chain/src/transaction/sighash.rs index 5395c284fad..4076c4a6944 100644 --- a/zebra-chain/src/transaction/sighash.rs +++ b/zebra-chain/src/transaction/sighash.rs @@ -68,7 +68,7 @@ impl<'a> SigHasher<'a> { use NetworkUpgrade::*; match self.network_upgrade { - Genesis | BeforeOverwinter => unreachable!(ZIP143_EXPLANATION), + Genesis | BeforeOverwinter => unreachable!("{}", ZIP143_EXPLANATION), Overwinter | Sapling | Blossom | Heartwood | Canopy | Nu5 => { self.hash_sighash_librustzcash() }