InvalidRateError carries no detail and admits no future fields #13
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
InvalidRateError(src/exchange.rs:434) is a bare unit struct. Twoconsequences:
handling the error cannot report which value was at fault. The struct is
Copy, and aDecimalfield would keep it so.#[non_exhaustive], so downstream code can construct it, and addingthat field later is a breaking change.
Every multi-field error in the crate is already
#[non_exhaustive]—MoneyError(src/lib.rs:1206),IsoAlphabeticCodeError(src/lib.rs:1230),IsoNumericCodeError(src/lib.rs:1239).UnknownCurrencyError(src/lib.rs:1226) has the same shape and the same gap,so this is a decision to make across the crate rather than in
exchange.rsalone.
Guideline: C-GOOD-ERR.