Skip to content

Commit 90132ce

Browse files
committed
Fix HashMap in rustdoc example
1 parent 1ea4546 commit 90132ce

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
//! #
3535
//! # #[cfg(feature = "no-std")]
3636
//! # extern crate core2;
37+
//! # #[cfg(feature = "no-std")]
38+
//! # extern crate hashbrown;
3739
//! #
3840
//! # use lightning::ln::{PaymentHash, PaymentPreimage, PaymentSecret};
3941
//! # use lightning::ln::channelmanager::{ChannelDetails, PaymentId, PaymentSendFailure};
@@ -80,7 +82,7 @@
8082
//! # impl Router for FakeRouter {
8183
//! # fn find_route(
8284
//! # &self, payer: &PublicKey, params: &RouteParameters, payment_hash: &PaymentHash,
83-
//! # first_hops: Option<&[&ChannelDetails]>, inflight_htlc_map: std::collections::HashMap<(u64, bool), u64>
85+
//! # first_hops: Option<&[&ChannelDetails]>, inflight_htlc_map: HashMap<(u64, bool), u64>
8486
//! # ) -> Result<Route, LightningError> { unimplemented!() }
8587
//! #
8688
//! # fn payment_path_failed(&self, path: Vec<&RouteHop>, short_channel_id: u64) { unimplemented!() }

0 commit comments

Comments
 (0)