diff options
| author | Travis Watkins <amaranth@ubuntu.com> | 2015-01-13 05:43:30 -0600 |
|---|---|---|
| committer | Travis Watkins <amaranth@ubuntu.com> | 2015-01-13 05:43:30 -0600 |
| commit | 9f5fc563d3d592d5e44ab71759ffa26d326b3daa (patch) | |
| tree | d33debabc1229774993a800cfed113a7ae9aa230 /src/libcollections | |
| parent | 2cc81ac531c10a678ee25128a36fdc56ba00aaa3 (diff) | |
Fix test failures
Diffstat (limited to 'src/libcollections')
| -rw-r--r-- | src/libcollections/bit.rs | 4 | ||||
| -rw-r--r-- | 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 c1b34c52fcc..82e5af67ae3 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 ccf654ac0a0..7aa87ffaae2 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); } }); } |
