about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorlpy <pylaurent1314@gmail.com>2014-02-12 23:39:21 +0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-14 07:45:34 -0800
commit665555d58f2aa3c1d8aecd7b34392bde6c41b20d (patch)
treee119df824f7b13480de745508fff441e2add6c8f /src/libstd/rt
parent18477ac68a3daf8260be17be368f59a65c3b7527 (diff)
downloadrust-665555d58f2aa3c1d8aecd7b34392bde6c41b20d.tar.gz
rust-665555d58f2aa3c1d8aecd7b34392bde6c41b20d.zip
return value/use extra::test::black_box in benchmarks
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/global_heap.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/rt/global_heap.rs b/src/libstd/rt/global_heap.rs
index 4bce16706ee..ab279fd3102 100644
--- a/src/libstd/rt/global_heap.rs
+++ b/src/libstd/rt/global_heap.rs
@@ -112,14 +112,14 @@ mod bench {
     #[bench]
     fn alloc_owned_small(bh: &mut BenchHarness) {
         bh.iter(|| {
-            ~10;
+            ~10
         })
     }
 
     #[bench]
     fn alloc_owned_big(bh: &mut BenchHarness) {
         bh.iter(|| {
-            ~[10, ..1000];
+            ~[10, ..1000]
         })
     }
 }