projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix unknown handling in `impl_writeable_tlv_based_enum_upgradable`
[rust-lightning]
/
lightning
/
src
/
offers
/
invoice_error.rs
diff --git
a/lightning/src/offers/invoice_error.rs
b/lightning/src/offers/invoice_error.rs
index 441dae265cbb4fb9c9ed8d527e6b9b65c1e61ad1..5476ad551b7b627d5e1abac8d19fc836b673e54c 100644
(file)
--- a/
lightning/src/offers/invoice_error.rs
+++ b/
lightning/src/offers/invoice_error.rs
@@
-50,10
+50,10
@@
pub struct ErroneousField {
impl InvoiceError {
/// Creates an [`InvoiceError`] with the given message.
impl InvoiceError {
/// Creates an [`InvoiceError`] with the given message.
- pub fn from_str
(s: &str
) -> Self {
+ pub fn from_str
ing(s: String
) -> Self {
Self {
erroneous_field: None,
Self {
erroneous_field: None,
- message: UntrustedString(s
.to_string()
),
+ message: UntrustedString(s),
}
}
}
}
}
}