From: Arik Sosman Date: Sat, 24 Jun 2023 05:34:14 +0000 (-0700) Subject: Fix build warning about HTLCSource::dummy(). X-Git-Tag: v0.0.116-rc1~24^2~3 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=a6578c11592da91bc42e27f88725c99dc5d82abc;p=rust-lightning Fix build warning about HTLCSource::dummy(). --- diff --git a/lightning/src/ln/channelmanager.rs b/lightning/src/ln/channelmanager.rs index a03f11d57..5dacda715 100644 --- a/lightning/src/ln/channelmanager.rs +++ b/lightning/src/ln/channelmanager.rs @@ -317,7 +317,7 @@ impl core::hash::Hash for HTLCSource { } } impl HTLCSource { - #[cfg(not(feature = "grind_signatures"))] + #[cfg(all(feature = "_test_vectors", not(feature = "grind_signatures")))] #[cfg(test)] pub fn dummy() -> Self { HTLCSource::OutboundRoute {