Skip to content

Commit

Permalink
Do dangerous and useless optimization for fun
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulGrandperrin committed Dec 18, 2018
1 parent d42c988 commit b37152b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/algorithm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,10 @@ pub mod b_epsilon_tree {
if let Some(e) = new_entries_it.next() {
chunked_entries.push(e);
} else {
#[cfg(debug_assertions)]
unreachable!();
#[cfg(not(debug_assertions))]
unsafe {std::hint::unreachable_unchecked()}; // YOLO
}
}

Expand Down

0 comments on commit b37152b

Please sign in to comment.