Skip to content

Commit 7f34c4a

Browse files
committed
Fix alloc feature
1 parent 8f4e456 commit 7f34c4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
5454
#![cfg_attr(all(feature="simd_support", feature="nightly"), feature(stdsimd))]
5555

56-
#![cfg(all(feature="alloc", not(feature="std")))]
56+
#[cfg(all(feature="alloc"))]
5757
extern crate alloc;
5858

5959
#[cfg(feature = "getrandom")]

src/seq/index.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ where R: Rng + ?Sized, IndexVec: From<Vec<X>> {
326326

327327
#[cfg(test)]
328328
mod test {
329-
use crate::alloc::vec;
329+
use alloc::vec;
330330
use super::*;
331331

332332
#[test]

0 commit comments

Comments
 (0)