Skip to content

Commit cb0f1c3

Browse files
authored
Fix nightly regression due to stabilization of Iterator::flatten, see rust-lang/rust#51511
1 parent 74a15e7 commit cb0f1c3

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/payment_request.rs

+8-8
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,14 @@ impl PaymentRequest {
198198

199199
/// Return the extra routing info.
200200
pub fn routing_info(&self) -> Vec<ExtraHop> {
201-
self.tags
202-
.iter()
203-
.filter_map(|v| match *v {
204-
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
205-
_ => None,
206-
})
207-
.flatten()
208-
.collect_vec()
201+
Itertools::flatten(
202+
self.tags
203+
.iter()
204+
.filter_map(|v| match *v {
205+
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
206+
_ => None,
207+
})
208+
).collect_vec()
209209
}
210210

211211
/// Return the min_final_cltv_expiry if any.

0 commit comments

Comments
 (0)