diff --git a/brood/src/commands/path.rs b/brood/src/commands/path.rs index 724339a..a8cb8dd 100644 --- a/brood/src/commands/path.rs +++ b/brood/src/commands/path.rs @@ -127,12 +127,11 @@ fn dijkstra( }; } steps.reverse(); - Some(steps) - // if steps.first() == Some(&from_idx) { - // Some(steps) - // } else { - // None - // } + if steps.first() == Some(&from_idx) { + Some(steps) + } else { + None + } } pub fn path(datafile: &Path, from: &str, to: &str) -> io::Result<()> {