Skip to content

Commit

Permalink
Fix nightly regression due to stabilization of Iterator::flatten, see r…
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril authored Jun 14, 2018
1 parent 74a15e7 commit cb0f1c3
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/payment_request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,14 +198,14 @@ impl PaymentRequest {

/// Return the extra routing info.
pub fn routing_info(&self) -> Vec<ExtraHop> {
self.tags
.iter()
.filter_map(|v| match *v {
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
_ => None,
})
.flatten()
.collect_vec()
Itertools::flatten(
self.tags
.iter()
.filter_map(|v| match *v {
Tag::RoutingInfo { ref path } => Some(path.to_owned()),
_ => None,
})
).collect_vec()
}

/// Return the min_final_cltv_expiry if any.
Expand Down

0 comments on commit cb0f1c3

Please sign in to comment.