@@ -8967,10 +8967,10 @@ where
8967
8967
match invoice.sign(|invoice| self.node_signer.sign_bolt12_invoice(invoice)) {
8968
8968
Ok(invoice) => Ok(OffersMessage::Invoice(invoice)),
8969
8969
Err(SignError::Signing(())) => Err(OffersMessage::InvoiceError(
8970
- InvoiceError::from_str ("Failed signing invoice")
8970
+ InvoiceError::from_string ("Failed signing invoice".to_string() )
8971
8971
)),
8972
8972
Err(SignError::Verification(_)) => Err(OffersMessage::InvoiceError(
8973
- InvoiceError::from_str ("Failed invoice signature verification")
8973
+ InvoiceError::from_string ("Failed invoice signature verification".to_string() )
8974
8974
)),
8975
8975
});
8976
8976
match response {
@@ -8986,15 +8986,15 @@ where
8986
8986
OffersMessage::Invoice(invoice) => {
8987
8987
match invoice.verify(expanded_key, secp_ctx) {
8988
8988
Err(()) => {
8989
- Some(OffersMessage::InvoiceError(InvoiceError::from_str ("Unrecognized invoice")))
8989
+ Some(OffersMessage::InvoiceError(InvoiceError::from_string ("Unrecognized invoice".to_owned() )))
8990
8990
},
8991
8991
Ok(_) if invoice.invoice_features().requires_unknown_bits_from(&self.bolt12_invoice_features()) => {
8992
8992
Some(OffersMessage::InvoiceError(Bolt12SemanticError::UnknownRequiredFeatures.into()))
8993
8993
},
8994
8994
Ok(payment_id) => {
8995
8995
if let Err(e) = self.send_payment_for_bolt12_invoice(&invoice, payment_id) {
8996
8996
log_trace!(self.logger, "Failed paying invoice: {:?}", e);
8997
- Some(OffersMessage::InvoiceError(InvoiceError::from_str(& format!("{:?}", e))))
8997
+ Some(OffersMessage::InvoiceError(InvoiceError::from_string( format!("{:?}", e))))
8998
8998
} else {
8999
8999
None
9000
9000
}
0 commit comments