Skip to content

Commit 2ee8be4

Browse files
Format code per maintainer feedback
Co-authored-by: samueltardieu <44656+samueltardieu@users.noreply.github.com>
1 parent 0acbef9 commit 2ee8be4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/directed/cycle_detection.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@ where
4747
// Handle edge case where they meet at the start position (pure cycle, mu = 0)
4848
// In this case, tortoise_steps equals lam, and to satisfy mu_tilde < mu + lam,
4949
// we must return 0.
50-
let mu_tilde = if tortoise == start {
51-
0
52-
} else {
53-
tortoise_steps
54-
};
50+
let mu_tilde = if tortoise == start { 0 } else { tortoise_steps };
5551
(lam, tortoise, mu_tilde)
5652
}
5753

0 commit comments

Comments
 (0)