From 778c752a0b0e25ac15a78bcf3b6b2651224b7f96 Mon Sep 17 00:00:00 2001 From: benthecarman Date: Sat, 15 Apr 2023 15:38:53 -0500 Subject: [PATCH] Fix compiling lightning-invoice for no-std + serde --- lightning-invoice/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) } -- 2.39.5