fix BTreeMap test compilation with Miri

This commit is contained in:
Ralf Jung 2020-03-30 12:03:55 +02:00
parent 8926bb497d
commit 032d3cd553
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ fn test_range_1000() {
#[cfg(not(miri))] // Miri is too slow
let size = 1000;
#[cfg(miri)]
let size = MIN_INSERTS_HEIGHT_2;
let size = MIN_INSERTS_HEIGHT_2 as u32;
let map: BTreeMap<_, _> = (0..size).map(|i| (i, i)).collect();
fn test(map: &BTreeMap<u32, u32>, size: u32, min: Bound<&u32>, max: Bound<&u32>) {