Mark `Denomination` as `non_exhaustive`
It is possible that we will add new variants to `Denomination` in the future so making it `non_exhaustive` is better for forward compatibility.
This commit is contained in:
parent
d830e8d542
commit
67618d679d
|
@ -31,6 +31,7 @@ use crate::prelude::*;
|
||||||
/// assert_eq!(Amount::from_str("1000 msats").unwrap(), Amount::from_sat(1));
|
/// assert_eq!(Amount::from_str("1000 msats").unwrap(), Amount::from_sat(1));
|
||||||
/// ```
|
/// ```
|
||||||
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
#[derive(Debug, Clone, Copy, Eq, PartialEq, Hash)]
|
||||||
|
#[non_exhaustive]
|
||||||
pub enum Denomination {
|
pub enum Denomination {
|
||||||
/// BTC
|
/// BTC
|
||||||
Bitcoin,
|
Bitcoin,
|
||||||
|
|
Loading…
Reference in New Issue