Use string literal to format unreachable message (#3479)

This commit is contained in:
Deirdre Connolly 2022-02-08 00:56:32 -05:00 committed by GitHub
parent e703bd3512
commit 3644171738
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()
}