summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonas Schievink <jonasschievink@gmail.com>2020-09-27 01:53:22 +0200
committerGitHub <noreply@github.com>2020-09-27 01:53:22 +0200
commitbb416f3a59ae5d5e4178a29ec351b579d9e36321 (patch)
tree1ddc8f22bbe779fa4929ee40b6e9e8250926092b
parentRollup merge of #77167 - fusion-engineering-forks:fix-fixme-min-max-sign-test... (diff)
parentRust vec bench import specific rand::RngCore (diff)
downloadrust-bb416f3a59ae5d5e4178a29ec351b579d9e36321.tar.gz
rust-bb416f3a59ae5d5e4178a29ec351b579d9e36321.tar.bz2
rust-bb416f3a59ae5d5e4178a29ec351b579d9e36321.tar.xz
Rollup merge of #77184 - pickfire:patch-4, r=kennytm
Rust vec bench import specific rand::RngCore Using `RngCore` import for side effects is clearer than `*` which may bring it unnecessary more stuff than needed, it is also more explicit doing so. @pickfire change `LEN = 16384` (and pos) and `once` instead of `[0].iter()` after this. @rustbot modify labels: +C-cleanup +A-testsuite
-rw-r--r--library/alloc/benches/vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/benches/vec.rs b/library/alloc/benches/vec.rs
index 687efa8..789ae3a 100644
--- a/library/alloc/benches/vec.rs
+++ b/library/alloc/benches/vec.rs
@@ -1,4 +1,4 @@
1use rand::prelude::*; 1use rand::RngCore;
2use std::iter::{repeat, FromIterator}; 2use std::iter::{repeat, FromIterator};
3use test::{black_box, Bencher}; 3use test::{black_box, Bencher};
4 4