From a6578c11592da91bc42e27f88725c99dc5d82abc Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Fri, 23 Jun 2023 22:34:14 -0700 Subject: [PATCH] Fix build warning about HTLCSource::dummy(). --- lightning/src/ln/channelmanager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5