Skip to content

Commit 461dda2

Browse files
committed
Treat bitcoin::Network as exhausive
It is no longer `non_exhausive`, as of rust-bitcoin v0.32.7. See rust-bitcoin/rust-bitcoin#4640
1 parent 9262221 commit 461dda2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/chain.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ pub fn bitcoin_genesis_hash(network: BNetwork) -> bitcoin::BlockHash {
139139
BNetwork::Testnet4 => *TESTNET4_GENESIS,
140140
BNetwork::Regtest => *REGTEST_GENESIS,
141141
BNetwork::Signet => *SIGNET_GENESIS,
142-
_ => panic!("unknown network {:?}", network),
143142
}
144143
}
145144

@@ -211,7 +210,6 @@ impl From<BNetwork> for Network {
211210
BNetwork::Testnet4 => Network::Testnet4,
212211
BNetwork::Regtest => Network::Regtest,
213212
BNetwork::Signet => Network::Signet,
214-
_ => panic!("unknown network {:?}", network),
215213
}
216214
}
217215
}

0 commit comments

Comments
 (0)