From: benthecarman Date: Sat, 15 Apr 2023 20:38:53 +0000 (-0500) Subject: Fix compiling lightning-invoice for no-std + serde X-Git-Tag: v0.0.115~21^2~1 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=778c752a0b0e25ac15a78bcf3b6b2651224b7f96;p=rust-lightning Fix compiling lightning-invoice for no-std + serde --- diff --git a/lightning-invoice/src/lib.rs b/lightning-invoice/src/lib.rs index e9565f4ce..8426db37c 100644 --- a/lightning-invoice/src/lib.rs +++ b/lightning-invoice/src/lib.rs @@ -1648,7 +1648,7 @@ impl<'de> Deserialize<'de> for Invoice { fn deserialize(deserializer: D) -> Result where D: Deserializer<'de> { let bolt11 = String::deserialize(deserializer)? .parse::() - .map_err(|e| D::Error::custom(format!("{:?}", e)))?; + .map_err(|e| D::Error::custom(alloc::format!("{:?}", e)))?; Ok(bolt11) }