Skip to content

Commit 01b9d14

Browse files
committed
impl Deref for EmptyNodeIdLookUp
1 parent 38690bf commit 01b9d14

File tree

1 file changed

+6
-0
lines changed
  • lightning/src/blinded_path

1 file changed

+6
-0
lines changed

lightning/src/blinded_path/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ pub mod payment;
1313
pub(crate) mod message;
1414
pub(crate) mod utils;
1515

16+
use core::ops::Deref;
1617
use bitcoin::secp256k1::{self, PublicKey, Secp256k1, SecretKey};
1718

1819
use crate::ln::msgs::DecodeError;
@@ -100,6 +101,11 @@ impl NodeIdLookUp for EmptyNodeIdLookUp {
100101
}
101102
}
102103

104+
impl Deref for EmptyNodeIdLookUp {
105+
type Target = EmptyNodeIdLookUp;
106+
fn deref(&self) -> &Self { self }
107+
}
108+
103109
/// An encrypted payload and node id corresponding to a hop in a payment or onion message path, to
104110
/// be encoded in the sender's onion packet. These hops cannot be identified by outside observers
105111
/// and thus can be used to hide the identity of the recipient.

0 commit comments

Comments
 (0)