]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix build warning about HTLCSource::dummy().
authorArik Sosman <git@arik.io>
Sat, 24 Jun 2023 05:34:14 +0000 (22:34 -0700)
committerArik Sosman <git@arik.io>
Sat, 24 Jun 2023 17:52:27 +0000 (10:52 -0700)
lightning/src/ln/channelmanager.rs

index a03f11d57443f340713909cac761e057d7637ead..5dacda7155f67f086be96a3aaa3d9a2b97cfad56 100644 (file)
@@ -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 {