Skip to content

Commit 8bbdc85

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

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
@@ -3850,7 +3850,8 @@ mod tests {
38503850
File::open(path)
38513851
});
38523852
#[cfg(require_route_graph_test)]
3853-
return Ok(res.expect("Didn't have route graph and was configured to require it"));
3853+
Ok(res.expect("Didn't have route graph and was configured to require it"))
3854+
#[cfg(not(require_route_graph_test))]
38543855
res
38553856
}
38563857

0 commit comments

Comments
 (0)