Skip to content

Commit daa1979

Browse files
committed
Fix compile warning with --cfg require_route_graph_test
1 parent 7e39f87 commit daa1979

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lightning/src/routing/router.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3851,7 +3851,8 @@ mod tests {
38513851
});
38523852
#[cfg(require_route_graph_test)]
38533853
return Ok(res.expect("Didn't have route graph and was configured to require it"));
3854-
res
3854+
#[cfg(not(require_route_graph_test))]
3855+
return res;
38553856
}
38563857

38573858
pub(super) fn random_init_seed() -> u64 {

0 commit comments

Comments
 (0)