Skip to content

Commit 5608c97

Browse files
committed
Fix usage of alloc crate
This is to fix CI, but otherwise unnecessary
1 parent 8dcc4de commit 5608c97

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/distributions/other.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ impl<T> Distribution<Wrapping<T>> for Standard where Standard: Distribution<T> {
174174
mod tests {
175175
use {Rng, RngCore, Standard};
176176
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;
178178

179179
#[test]
180180
fn test_misc() {

src/seq.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ use super::Rng;
1515
// This crate is only enabled when either std or alloc is available.
1616
// BTreeMap is not as fast in tests, but better than nothing.
1717
#[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;
1919

20-
#[cfg(not(feature="std"))] use alloc::Vec;
20+
#[cfg(not(feature="std"))] use alloc::vec::Vec;
2121

2222
/// Randomly sample `amount` elements from a finite iterator.
2323
///
@@ -227,7 +227,7 @@ mod test {
227227
use super::*;
228228
use {XorShiftRng, Rng, SeedableRng};
229229
#[cfg(not(feature="std"))]
230-
use alloc::Vec;
230+
use alloc::vec::Vec;
231231

232232
#[test]
233233
fn test_sample_iter() {

0 commit comments

Comments
 (0)