Skip to content

Commit 7bd046a

Browse files
committed
Fix HashMap in rustdoc example
1 parent 1ea4546 commit 7bd046a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lightning-invoice/src/payment.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
//! #
3535
//! # #[cfg(feature = "no-std")]
3636
//! # extern crate core2;
37+
//! # #[cfg(feature = "no-std")]
38+
//! # extern crate hashbrown;
3739
//! #
40+
//! # use hashbrown::HashMap;
3841
//! # use lightning::ln::{PaymentHash, PaymentPreimage, PaymentSecret};
3942
//! # use lightning::ln::channelmanager::{ChannelDetails, PaymentId, PaymentSendFailure};
4043
//! # use lightning::ln::msgs::LightningError;
@@ -80,7 +83,7 @@
8083
//! # impl Router for FakeRouter {
8184
//! # fn find_route(
8285
//! # &self, payer: &PublicKey, params: &RouteParameters, payment_hash: &PaymentHash,
83-
//! # first_hops: Option<&[&ChannelDetails]>, inflight_htlc_map: std::collections::HashMap<(u64, bool), u64>
86+
//! # first_hops: Option<&[&ChannelDetails]>, inflight_htlc_map: HashMap<(u64, bool), u64>
8487
//! # ) -> Result<Route, LightningError> { unimplemented!() }
8588
//! #
8689
//! # fn payment_path_failed(&self, path: Vec<&RouteHop>, short_channel_id: u64) { unimplemented!() }

0 commit comments

Comments
 (0)