Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/undirected/connected_components.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ use std::usize;
/// Lookup entries until we get the same value as the index, with
/// path halving. Adding a new entry to the table consists
/// into pushing the table length.
fn get_and_redirect(table: &mut Vec<usize>, mut idx: usize) -> usize {
fn get_and_redirect(table: &mut [usize], mut idx: usize) -> usize {
while idx != table[idx] {
table[idx] = table[table[idx]];
idx = table[idx];
Expand Down