Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lightning-invoice/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1146,7 +1146,7 @@ impl RawBolt11Invoice {
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
pub fn known_tagged_fields(
&self,
) -> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
) -> FilterMap<'_, Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
// For 1.14.0 compatibility: closures' types can't be written an fn()->() in the
// function's type signature.
// TODO: refactor once impl Trait is available
Expand Down Expand Up @@ -1468,7 +1468,7 @@ impl Bolt11Invoice {
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
pub fn tagged_fields(
&self,
) -> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
) -> FilterMap<'_, Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
self.signed_invoice.raw_invoice().known_tagged_fields()
}

Expand All @@ -1480,7 +1480,7 @@ impl Bolt11Invoice {
/// Return the description or a hash of it for longer ones
///
/// This is not exported to bindings users because we don't yet export Bolt11InvoiceDescription
pub fn description(&self) -> Bolt11InvoiceDescriptionRef {
pub fn description(&self) -> Bolt11InvoiceDescriptionRef<'_> {
if let Some(direct) = self.signed_invoice.description() {
return Bolt11InvoiceDescriptionRef::Direct(direct);
} else if let Some(hash) = self.signed_invoice.description_hash() {
Expand Down
Loading