Fix build warning about HTLCSource::dummy().

This commit is contained in:
Arik Sosman 2023-06-23 22:34:14 -07:00
parent 4a56d87ef9
commit a6578c1159
No known key found for this signature in database
GPG key ID: F4FB5A3366C4D92E

View file

@ -317,7 +317,7 @@ impl core::hash::Hash for HTLCSource {
} }
} }
impl HTLCSource { impl HTLCSource {
#[cfg(not(feature = "grind_signatures"))] #[cfg(all(feature = "_test_vectors", not(feature = "grind_signatures")))]
#[cfg(test)] #[cfg(test)]
pub fn dummy() -> Self { pub fn dummy() -> Self {
HTLCSource::OutboundRoute { HTLCSource::OutboundRoute {