Skip to content

Commit c898345

Browse files
committed
Fix lifetime elision warnings introduced by rustc 1.89
The just-released rustc 1.89 added a new `mismatched-lifetime-syntaxes` lint which had three new warnings pop up. We fix these here.
1 parent de2005a commit c898345

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lightning-invoice/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1146,7 +1146,7 @@ impl RawBolt11Invoice {
11461146
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
11471147
pub fn known_tagged_fields(
11481148
&self,
1149-
) -> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
1149+
) -> FilterMap<'_, Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
11501150
// For 1.14.0 compatibility: closures' types can't be written an fn()->() in the
11511151
// function's type signature.
11521152
// TODO: refactor once impl Trait is available
@@ -1468,7 +1468,7 @@ impl Bolt11Invoice {
14681468
/// This is not exported to bindings users as there is not yet a manual mapping for a FilterMap
14691469
pub fn tagged_fields(
14701470
&self,
1471-
) -> FilterMap<Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
1471+
) -> FilterMap<'_, Iter<RawTaggedField>, fn(&RawTaggedField) -> Option<&TaggedField>> {
14721472
self.signed_invoice.raw_invoice().known_tagged_fields()
14731473
}
14741474

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

0 commit comments

Comments
 (0)