Skip to content

Commit

Permalink
currency: add non_exhaustive attribute
Browse files Browse the repository at this point in the history
Closes #21
  • Loading branch information
Ballasi committed Mar 17, 2024
1 parent 306a325 commit 7a8c47e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/currency.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ use std::str::FromStr;
/// exceptions are `DINAR`, `DOLLAR`, `PESO` and `RIYAL`, which are generic
/// terminology for the respective currencies.
#[derive(Clone, Copy)]
#[non_exhaustive]
pub enum Currency {
/// Dirham
AED,
Expand Down

0 comments on commit 7a8c47e

Please sign in to comment.