From: benthecarman Date: Thu, 9 May 2024 17:16:40 +0000 (-0500) Subject: impl Deref for EmptyNodeIdLookUp X-Git-Tag: v0.0.124-beta~122^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=bfff6fda6e2e6183285be59a999d5b74feb08779;p=rust-lightning impl Deref for EmptyNodeIdLookUp --- diff --git a/lightning/src/blinded_path/mod.rs b/lightning/src/blinded_path/mod.rs index 3dc6b121b..29caafa4a 100644 --- a/lightning/src/blinded_path/mod.rs +++ b/lightning/src/blinded_path/mod.rs @@ -14,6 +14,7 @@ pub(crate) mod message; pub(crate) mod utils; use bitcoin::secp256k1::{self, PublicKey, Secp256k1, SecretKey}; +use core::ops::Deref; use crate::ln::msgs::DecodeError; use crate::offers::invoice::BlindedPayInfo; @@ -100,6 +101,11 @@ impl NodeIdLookUp for EmptyNodeIdLookUp { } } +impl Deref for EmptyNodeIdLookUp { + type Target = EmptyNodeIdLookUp; + fn deref(&self) -> &Self { self } +} + /// An encrypted payload and node id corresponding to a hop in a payment or onion message path, to /// be encoded in the sender's onion packet. These hops cannot be identified by outside observers /// and thus can be used to hide the identity of the recipient.