Cleanup and format

This commit is contained in:
Jeremy Soller
2019-01-14 21:07:24 -07:00
parent 8dabff129a
commit c71088e768
26 changed files with 507 additions and 378 deletions
+1 -3
View File
@@ -137,9 +137,7 @@ fn heap_sift_down(
swap_idx = child;
swap_ptr = first_child_ptr;
}
if child < end
&& comp(swap_ptr as *const c_void, second_child_ptr as *const c_void) < 0
{
if child < end && comp(swap_ptr as *const c_void, second_child_ptr as *const c_void) < 0 {
swap_idx = child + 1;
swap_ptr = second_child_ptr;
}