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/?a=commitdiff_plain;h=refs%2Fheads%2F2021-04-fix-bench;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 {