Merge rust-bitcoin/rust-bitcoin#1721: Mark `Denomination` as `non_exhaustive`
67618d679d
Mark `Denomination` as `non_exhaustive` (Martin Habovstiak) Pull request description: It is possible that we will add new variants to `Denomination` in the future so making it `non_exhaustive` is better for forward compatibility. ACKs for top commit: tcharding: ACK67618d679d
apoelstra: ACK67618d679d
sanket1729: ACK67618d679d
Tree-SHA512: a28b7c6577f098b3d64c505e948e3b9fd0cc43a911a2b7c35610ada6a2f75514a1cb05ab8c99212340cf4e34426ac8b5f0ecc65d5afa22d67296e82d878b9308
This commit is contained in:
commit
311b023eef
|
@ -31,6 +31,7 @@ use crate::prelude::*;
|
|||
/// assert_eq!(Amount::from_str("1000 msats").unwrap(), Amount::from_sat(1));
|
||||
/// ```
|
||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
||||
#[non_exhaustive]
|
||||
pub enum Denomination {
|
||||
/// BTC
|
||||
Bitcoin,
|
||||
|
|
Loading…
Reference in New Issue