mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-27 00:00:12 +02:00
Move timer heap assertions behind a dedicated cfg
No need to punish projects that enable debug assertions for themselves
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user