We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e1e3819 commit 778c752Copy full SHA for 778c752
lightning-invoice/src/lib.rs
@@ -1648,7 +1648,7 @@ impl<'de> Deserialize<'de> for Invoice {
1648
fn deserialize<D>(deserializer: D) -> Result<Invoice, D::Error> where D: Deserializer<'de> {
1649
let bolt11 = String::deserialize(deserializer)?
1650
.parse::<Invoice>()
1651
- .map_err(|e| D::Error::custom(format!("{:?}", e)))?;
+ .map_err(|e| D::Error::custom(alloc::format!("{:?}", e)))?;
1652
1653
Ok(bolt11)
1654
}
0 commit comments