From 67618d679d19b880978fee90671f4b0ae9f840a5 Mon Sep 17 00:00:00 2001 From: Martin Habovstiak Date: Tue, 21 Mar 2023 20:21:37 +0100 Subject: [PATCH] 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. --- bitcoin/src/amount.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin/src/amount.rs b/bitcoin/src/amount.rs index b4a9a6c2..47093b5e 100644 --- a/bitcoin/src/amount.rs +++ b/bitcoin/src/amount.rs @@ -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,