File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -174,7 +174,7 @@ impl<T> Distribution<Wrapping<T>> for Standard where Standard: Distribution<T> {
174
174
mod tests {
175
175
use { Rng , RngCore , Standard } ;
176
176
use distributions:: Alphanumeric ;
177
- #[ cfg( all( not( feature="std" ) , feature="alloc" ) ) ] use alloc:: String ;
177
+ #[ cfg( all( not( feature="std" ) , feature="alloc" ) ) ] use alloc:: string :: String ;
178
178
179
179
#[ test]
180
180
fn test_misc ( ) {
Original file line number Diff line number Diff line change @@ -15,9 +15,9 @@ use super::Rng;
15
15
// This crate is only enabled when either std or alloc is available.
16
16
// BTreeMap is not as fast in tests, but better than nothing.
17
17
#[ cfg( feature="std" ) ] use std:: collections:: HashMap ;
18
- #[ cfg( not( feature="std" ) ) ] use alloc:: btree_map:: BTreeMap ;
18
+ #[ cfg( not( feature="std" ) ) ] use alloc:: collections :: btree_map:: BTreeMap ;
19
19
20
- #[ cfg( not( feature="std" ) ) ] use alloc:: Vec ;
20
+ #[ cfg( not( feature="std" ) ) ] use alloc:: vec :: Vec ;
21
21
22
22
/// Randomly sample `amount` elements from a finite iterator.
23
23
///
@@ -227,7 +227,7 @@ mod test {
227
227
use super :: * ;
228
228
use { XorShiftRng , Rng , SeedableRng } ;
229
229
#[ cfg( not( feature="std" ) ) ]
230
- use alloc:: Vec ;
230
+ use alloc:: vec :: Vec ;
231
231
232
232
#[ test]
233
233
fn test_sample_iter ( ) {
You can’t perform that action at this time.
0 commit comments