Skip to content

Commit 62e87fa

Browse files
committed
f - remove Option from some Offer method return values
1 parent da953f2 commit 62e87fa

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lightning/src/offers/offer.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,8 @@ impl TryFrom<OfferTlvStream> for OfferContents {
478478
Some(description) => description,
479479
};
480480

481+
let features = features.unwrap_or_else(OfferFeatures::empty);
482+
481483
let absolute_expiry = absolute_expiry
482484
.map(|seconds_from_epoch| Duration::from_secs(seconds_from_epoch));
483485

0 commit comments

Comments
 (0)