From b202d91212f481645bb584ed9b3fa7ac4ff1a8be Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Sat, 11 May 2024 20:05:26 +0000 Subject: [PATCH] Use `[u8; 3]` not `CurrencyCode` to skip type aliases to primitives --- lightning/src/offers/offer.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightning/src/offers/offer.rs b/lightning/src/offers/offer.rs index 346282352..574effb56 100644 --- a/lightning/src/offers/offer.rs +++ b/lightning/src/offers/offer.rs @@ -990,14 +990,14 @@ pub enum Amount { /// An amount of currency specified using ISO 4712. Currency { /// The currency that the amount is denominated in. - iso4217_code: CurrencyCode, + iso4217_code: [u8; 3], /// The amount in the currency unit adjusted by the ISO 4712 exponent (e.g., USD cents). amount: u64, }, } /// An ISO 4712 three-letter currency code (e.g., USD). -pub type CurrencyCode = [u8; 3]; +pub(crate) type CurrencyCode = [u8; 3]; /// Quantity of items supported by an [`Offer`]. #[derive(Clone, Copy, Debug, PartialEq)] -- 2.39.5