From daa1979aae43dd6d865ed5a1bbaf6b72243e36a7 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 12 Apr 2021 20:33:53 -0400 Subject: [PATCH] Fix compile warning with --cfg require_route_graph_test --- lightning/src/routing/router.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lightning/src/routing/router.rs b/lightning/src/routing/router.rs index 5e36a281f..0ad307cdf 100644 --- a/lightning/src/routing/router.rs +++ b/lightning/src/routing/router.rs @@ -3851,7 +3851,8 @@ mod tests { }); #[cfg(require_route_graph_test)] return Ok(res.expect("Didn't have route graph and was configured to require it")); - res + #[cfg(not(require_route_graph_test))] + return res; } pub(super) fn random_init_seed() -> u64 { -- 2.39.5