Use string literal to format unreachable message (#3479)
This commit is contained in:
parent
e703bd3512
commit
3644171738
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue