From: Matt Corallo Date: Tue, 13 Apr 2021 00:33:53 +0000 (-0400) Subject: Fix compile warning with --cfg require_route_graph_test X-Git-Tag: v0.0.14~27^2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=daa1979aae43dd6d865ed5a1bbaf6b72243e36a7;p=rust-lightning Fix compile warning with --cfg require_route_graph_test --- 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 {