From 9f5fc563d3d592d5e44ab71759ffa26d326b3daa Mon Sep 17 00:00:00 2001 From: Travis Watkins Date: Tue, 13 Jan 2015 05:43:30 -0600 Subject: [PATCH] Fix test failures --- src/libcollections/bit.rs | 4 ++-- src/libcollections/str.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcollections/bit.rs b/src/libcollections/bit.rs index c1b34c52fcc1..82e5af67ae31 100644 --- a/src/libcollections/bit.rs +++ b/src/libcollections/bit.rs @@ -2526,7 +2526,7 @@ mod bitv_bench { for _ in range(0u, 100) { bitv |= 1 << ((r.next_u32() as uint) % u32::BITS); } - black_box(&bitv) + black_box(&bitv); }); } @@ -2538,7 +2538,7 @@ mod bitv_bench { for _ in range(0u, 100) { bitv.set((r.next_u32() as uint) % BENCH_BITS, true); } - black_box(&bitv) + black_box(&bitv); }); } diff --git a/src/libcollections/str.rs b/src/libcollections/str.rs index ccf654ac0a04..7aa87ffaae26 100644 --- a/src/libcollections/str.rs +++ b/src/libcollections/str.rs @@ -2841,7 +2841,7 @@ mod bench { let s = "ศไทย中华Việt Nam; Mary had a little lamb, Little lamb"; b.iter(|| { - for ch in s.chars() { black_box(ch) } + for ch in s.chars() { black_box(ch); } }); } @@ -2869,7 +2869,7 @@ mod bench { let s = "ศไทย中华Việt Nam; Mary had a little lamb, Little lamb"; b.iter(|| { - for ch in s.chars().rev() { black_box(ch) } + for ch in s.chars().rev() { black_box(ch); } }); }