We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc5236a commit 56a5157Copy full SHA for 56a5157
src/lib.rs
@@ -53,7 +53,7 @@
53
#![cfg_attr(all(feature="alloc", not(feature="std")), feature(alloc))]
54
#![cfg_attr(all(feature="simd_support", feature="nightly"), feature(stdsimd))]
55
56
-#[cfg(all(feature="alloc"))]
+#[cfg(all(feature="alloc", not(feature="std")))]
57
extern crate alloc;
58
59
#[cfg(feature = "getrandom")]
src/seq/index.rs
@@ -326,7 +326,8 @@ where R: Rng + ?Sized, IndexVec: From<Vec<X>> {
326
327
#[cfg(test)]
328
mod test {
329
- use alloc::vec;
+ #[cfg(feature="std")] use std::vec;
330
+ #[cfg(all(feature="alloc", not(feature="std")))] use crate::alloc::vec;
331
use super::*;
332
333
#[test]
0 commit comments