From 80803d102f9e4d12991fccae4fc8bb2108c51d2f Mon Sep 17 00:00:00 2001 From: Jonas Sicking Date: Thu, 12 Jul 2018 05:17:18 -0700 Subject: [PATCH] Fix no-std alloc builds --- src/seq.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/seq.rs b/src/seq.rs index 0895b1afcc1..445ab96968b 100644 --- a/src/seq.rs +++ b/src/seq.rs @@ -19,7 +19,7 @@ #[cfg(all(feature="alloc", not(feature="std")))] use alloc::vec::Vec; // BTreeMap is not as fast in tests, but better than nothing. #[cfg(feature="std")] use std::collections::HashMap; -#[cfg(all(feature="alloc", not(feature="std")))] use alloc::collections::BTreeMap; +#[cfg(all(feature="alloc", not(feature="std")))] use alloc::btree_map::BTreeMap; use super::Rng; #[cfg(feature="alloc")] use distributions::uniform::{SampleUniform, SampleBorrow};