We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 56b0c96 + 6964299 commit bb38ed3Copy full SHA for bb38ed3
1 file changed
lightning-invoice/src/lib.rs
@@ -1725,7 +1725,7 @@ impl<'de> Deserialize<'de> for Invoice {
1725
fn deserialize<D>(deserializer: D) -> Result<Invoice, D::Error> where D: Deserializer<'de> {
1726
let bolt11 = String::deserialize(deserializer)?
1727
.parse::<Invoice>()
1728
- .map_err(|e| D::Error::custom(alloc::format!("{:?}", e)))?;
+ .map_err(|e| D::Error::custom(format_args!("{:?}", e)))?;
1729
1730
Ok(bolt11)
1731
}
0 commit comments