Skip to content

Commit 778c752

Browse files
committed
Fix compiling lightning-invoice for no-std + serde
1 parent e1e3819 commit 778c752

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning-invoice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,7 @@ impl<'de> Deserialize<'de> for Invoice {
16481648
fn deserialize<D>(deserializer: D) -> Result<Invoice, D::Error> where D: Deserializer<'de> {
16491649
let bolt11 = String::deserialize(deserializer)?
16501650
.parse::<Invoice>()
1651-
.map_err(|e| D::Error::custom(format!("{:?}", e)))?;
1651+
.map_err(|e| D::Error::custom(alloc::format!("{:?}", e)))?;
16521652

16531653
Ok(bolt11)
16541654
}

0 commit comments

Comments
 (0)