amount: Format serde file

Done as a separate patch so that the diff of the verification code move
was less noisy.
This commit is contained in:
Tobin C. Harding 2024-10-31 11:38:01 +11:00
parent df96267342
commit 2d4c0fa6c1
No known key found for this signature in database
GPG Key ID: 40BF9E4C269D6607
1 changed files with 1 additions and 3 deletions

View File

@ -88,9 +88,7 @@ impl SerdeAmount for Amount {
#[cfg(feature = "alloc")]
fn des_btc<'d, D: Deserializer<'d>>(d: D, _: private::Token) -> Result<Self, D::Error> {
use serde::de::Error;
Amount::from_btc(f64::deserialize(d)?)
.map_err(DisplayFullError)
.map_err(D::Error::custom)
Amount::from_btc(f64::deserialize(d)?).map_err(DisplayFullError).map_err(D::Error::custom)
}
}