Skip to content

Commit 397bf7b

Browse files
committed
f - remove Option from some Offer method return values
1 parent 8bbffa9 commit 397bf7b

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
@@ -503,6 +503,8 @@ impl TryFrom<OfferTlvStream> for OfferContents {
503503
Some(description) => description,
504504
};
505505

506+
let features = features.unwrap_or_else(OfferFeatures::empty);
507+
506508
let absolute_expiry = absolute_expiry
507509
.map(|seconds_from_epoch| Duration::from_secs(seconds_from_epoch));
508510

0 commit comments

Comments
 (0)