From e72b3542d206d3e99e5298018949722f5eb5e734 Mon Sep 17 00:00:00 2001 From: Stephen Waits <1+swaits@noreply.git.swaits.com> Date: Sun, 11 Oct 2026 01:37:07 +0000 Subject: [PATCH] First slice: ledger-store (journal+blobs+sqlite) and ledger-mcp (18 tools, receipt policy) --- crates/ledger-core/src/money.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/crates/ledger-core/src/money.rs b/crates/ledger-core/src/money.rs index 1e529bd..0d1d37b 100644 --- a/crates/ledger-core/src/money.rs +++ b/crates/ledger-core/src/money.rs @@ -15,15 +15,15 @@ pub struct Currency([u8; 3]); impl Currency { /// US dollar. - pub const USD: Currency = Currency([b'U', b'S', b'D']); + pub const USD: Currency = Currency(*b"USD"); /// Euro. - pub const EUR: Currency = Currency([b'E', b'U', b'R']); + pub const EUR: Currency = Currency(*b"EUR"); /// British pound. - pub const GBP: Currency = Currency([b'G', b'B', b'P']); + pub const GBP: Currency = Currency(*b"GBP"); /// Swiss franc. - pub const CHF: Currency = Currency([b'C', b'H', b'F']); + pub const CHF: Currency = Currency(*b"CHF"); /// Japanese yen. - pub const JPY: Currency = Currency([b'J', b'P', b'Y']); + pub const JPY: Currency = Currency(*b"JPY"); /// Parse and validate a three-letter code. Input is uppercased, so /// `"usd"` and `"USD"` both work; `"US"` or `"USDD"` fail.