From daf0772bd5168ff8949fe90c02848399488b38da Mon Sep 17 00:00:00 2001 From: Jakub Konka Date: Sun, 26 Jan 2020 21:11:19 +0100 Subject: [PATCH] Fix environ crate tests on nightly --- crates/environ/src/cache/tests.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/environ/src/cache/tests.rs b/crates/environ/src/cache/tests.rs index 7a9bdc31c6..d990288042 100644 --- a/crates/environ/src/cache/tests.rs +++ b/crates/environ/src/cache/tests.rs @@ -333,13 +333,13 @@ fn new_module_cache_data(rng: &mut impl Rng) -> ModuleCacheData { let traps = (0..rng.gen_range(0, 0xd)) .map(|i| { - ((i..i + rng.gen_range(0, 4)) + (i..i + rng.gen_range(0, 4)) .map(|_| TrapInformation { code_offset: rng.gen(), source_loc: ir::SourceLoc::new(rng.gen()), trap_code: ir::TrapCode::StackOverflow, }) - .collect()) + .collect() }) .collect();