diff options
| author | John-John Tedro <udoprog@tedro.se> | 2017-11-28 17:03:33 +0100 |
|---|---|---|
| committer | John-John Tedro <udoprog@tedro.se> | 2017-11-29 20:14:52 +0100 |
| commit | 9bea79bd5ef492cf2c24e098ac93638446cb4860 (patch) | |
| tree | 1175a69cfeb43e23892c8f786f377b81869bad71 /src/liballoc | |
| parent | 0a2e9ade83ff253bb489c63a95b1f499c5e0916f (diff) | |
| download | rust-9bea79bd5ef492cf2c24e098ac93638446cb4860.tar.gz rust-9bea79bd5ef492cf2c24e098ac93638446cb4860.zip | |
Fix use of rand in liballoc benches
Diffstat (limited to 'src/liballoc')
| -rw-r--r-- | src/liballoc/benches/btree/map.rs | 2 | ||||
| -rw-r--r-- | src/liballoc/benches/slice.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/benches/btree/map.rs b/src/liballoc/benches/btree/map.rs index 744afb991b0..20b9091a07b 100644 --- a/src/liballoc/benches/btree/map.rs +++ b/src/liballoc/benches/btree/map.rs @@ -12,7 +12,7 @@ use std::iter::Iterator; use std::vec::Vec; use std::collections::BTreeMap; -use std::__rand::{Rng, thread_rng}; +use rand::{Rng, thread_rng}; use test::{Bencher, black_box}; macro_rules! map_insert_rand_bench { diff --git a/src/liballoc/benches/slice.rs b/src/liballoc/benches/slice.rs index d99270e7f31..17538d885f8 100644 --- a/src/liballoc/benches/slice.rs +++ b/src/liballoc/benches/slice.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::__rand::{thread_rng}; +use rand::{thread_rng}; use std::mem; use std::ptr; |
