Skip to content
Snippets Groups Projects
Commit 442fe774 authored by Wei Tang's avatar Wei Tang
Browse files

Make shuffling work in nostd!

parent 14d284da
Branches
No related merge requests found
......@@ -2,7 +2,6 @@
#![cfg_attr(not(feature = "std"), feature(alloc))]
#[cfg(not(feature = "std"))]
#[macro_use]
extern crate alloc;
extern crate blake2;
......@@ -11,6 +10,9 @@ mod rng;
use rng::ShuffleRng;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
#[derive(Debug)]
pub enum ShuffleErr {
ExceedsListLength,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment