Move timer heap assertions behind a dedicated cfg

No need to punish projects that enable debug assertions for themselves
This commit is contained in:
Alex Crichton
2017-09-12 10:58:41 -07:00
parent 63d7be0368
commit b320d9ee58
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -140,7 +140,7 @@ impl<T: Ord> Heap<T> {
}
fn assert_consistent(&self) {
if cfg!(not(debug_assertions)) {
if !cfg!(assert_timer_heap_consistent) {
return
}