Skip to content

Commit

Permalink
Give eager_sort param a name
Browse files Browse the repository at this point in the history
  • Loading branch information
Voultapher committed Sep 25, 2023
1 parent 7dc26c5 commit dbec55e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ where
let scratch_slice =
unsafe { slice::from_raw_parts_mut(buf.mut_ptr() as *mut MaybeUninit<T>, buf.capacity()) };

drift::sort(v, scratch_slice, false, is_less);
let eager_sort = false;
drift::sort(v, scratch_slice, eager_sort, is_less);
}

fn stable_quicksort<T, F: FnMut(&T, &T) -> bool>(
Expand Down

0 comments on commit dbec55e

Please sign in to comment.