Skip to content

Commit a5238df

Browse files
Merge #328
328: Code cleanup r=samueltardieu a=samueltardieu Co-authored-by: Samuel Tardieu <sam@rfc1149.net>
2 parents 0107162 + 12b03c3 commit a5238df

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/undirected/connected_components.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ use std::usize;
1010
/// Lookup entries until we get the same value as the index, with
1111
/// path halving. Adding a new entry to the table consists
1212
/// into pushing the table length.
13-
fn get_and_redirect(table: &mut Vec<usize>, mut idx: usize) -> usize {
13+
fn get_and_redirect(table: &mut [usize], mut idx: usize) -> usize {
1414
while idx != table[idx] {
1515
table[idx] = table[table[idx]];
1616
idx = table[idx];

0 commit comments

Comments
 (0)