We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0107162 + 12b03c3 commit a5238dfCopy full SHA for a5238df
1 file changed
src/undirected/connected_components.rs
@@ -10,7 +10,7 @@ use std::usize;
10
/// Lookup entries until we get the same value as the index, with
11
/// path halving. Adding a new entry to the table consists
12
/// into pushing the table length.
13
-fn get_and_redirect(table: &mut Vec<usize>, mut idx: usize) -> usize {
+fn get_and_redirect(table: &mut [usize], mut idx: usize) -> usize {
14
while idx != table[idx] {
15
table[idx] = table[table[idx]];
16
idx = table[idx];
0 commit comments