Skip to content

Commit

Permalink
return topo sort in correct order
Browse files Browse the repository at this point in the history
  • Loading branch information
kklas committed Mar 5, 2024
1 parent 3c976f2 commit 82365f6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion external-crates/move/crates/move-bytecode-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ impl<'a> Modules<'a> {
Err(_) => panic!("Circular dependency detected"),
Ok(ordered_idxs) => Ok(ordered_idxs
.into_iter()
.map(move |idx| idx_module_map.remove(&idx).unwrap())),
.map(move |idx| idx_module_map.remove(&idx).unwrap())
.rev()),
}
}

Expand Down

0 comments on commit 82365f6

Please sign in to comment.