8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74a15e7 commit cb0f1c3Copy full SHA for cb0f1c3
src/payment_request.rs
@@ -198,14 +198,14 @@ impl PaymentRequest {
198
199
/// Return the extra routing info.
200
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()
+ Itertools::flatten(
+ self.tags
+ .iter()
+ .filter_map(|v| match *v {
+ Tag::RoutingInfo { ref path } => Some(path.to_owned()),
+ _ => None,
+ })
+ ).collect_vec()
209
}
210
211
/// Return the min_final_cltv_expiry if any.
0 commit comments