projects
/
rust-lightning
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OutboundOnionPayload: hold Vec fields as references.
[rust-lightning]
/
lightning
/
src
/
offers
/
payer.rs
diff --git
a/lightning/src/offers/payer.rs
b/lightning/src/offers/payer.rs
index bfc02b5dbcb9804f1fd08bdf689f541a12579ed9..22180ce5f66fef52a2cba2a434c61e769cb287b8 100644
(file)
--- a/
lightning/src/offers/payer.rs
+++ b/
lightning/src/offers/payer.rs
@@
-12,6
+12,7
@@
use crate::offers::signer::Metadata;
use crate::util::ser::WithoutLength;
use crate::offers::signer::Metadata;
use crate::util::ser::WithoutLength;
+#[allow(unused_imports)]
use crate::prelude::*;
/// An unpredictable sequence of bytes typically containing information needed to derive
use crate::prelude::*;
/// An unpredictable sequence of bytes typically containing information needed to derive
@@
-22,10
+23,10
@@
use crate::prelude::*;
#[cfg_attr(test, derive(PartialEq))]
pub(super) struct PayerContents(pub Metadata);
#[cfg_attr(test, derive(PartialEq))]
pub(super) struct PayerContents(pub Metadata);
-/// TLV record type for [`InvoiceRequest::
metadata`] and [`Refund::
metadata`].
+/// TLV record type for [`InvoiceRequest::
payer_metadata`] and [`Refund::payer_
metadata`].
///
///
-/// [`InvoiceRequest::
metadata`]: crate::offers::invoice_request::InvoiceRequest::
metadata
-/// [`Refund::
metadata`]: crate::offers::refund::Refund::
metadata
+/// [`InvoiceRequest::
payer_metadata`]: crate::offers::invoice_request::InvoiceRequest::payer_
metadata
+/// [`Refund::
payer_metadata`]: crate::offers::refund::Refund::payer_
metadata
pub(super) const PAYER_METADATA_TYPE: u64 = 0;
tlv_stream!(PayerTlvStream, PayerTlvStreamRef, 0..1, {
pub(super) const PAYER_METADATA_TYPE: u64 = 0;
tlv_stream!(PayerTlvStream, PayerTlvStreamRef, 0..1, {