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:
Martin Habovstiak 2023-03-21 20:21:37 +01:00
parent d830e8d542
commit 67618d679d
1 changed files with 1 additions and 0 deletions

View File

@ -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,