Fix compile warning with --cfg require_route_graph_test 2021-04-fix-bench
authorMatt Corallo <git@bluematt.me>
Tue, 13 Apr 2021 00:33:53 +0000 (20:33 -0400)
committerMatt Corallo <git@bluematt.me>
Tue, 13 Apr 2021 03:35:44 +0000 (23:35 -0400)
lightning/src/routing/router.rs

index 5e36a281fce18b4379634b35aed7572289cda16a..0ad307cdf2f17bf1a347b535ebf5009e9a000c14 100644 (file)
@@ -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 {