From b6e7d759f0beb663179cc7c24c621ca5d4702caf Mon Sep 17 00:00:00 2001 From: Niklas Adolfsson Date: Wed, 20 Nov 2019 10:29:00 +0100 Subject: [PATCH] [fixed-hash]: re-export `alloc_` alloc is required by the `rustc-hex` implementation which make the `std` build to fail. This commit re-exports `alloc` for both std and no-std to fix this problem --- fixed-hash/src/lib.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/fixed-hash/src/lib.rs b/fixed-hash/src/lib.rs index 297490134..bfc210a84 100644 --- a/fixed-hash/src/lib.rs +++ b/fixed-hash/src/lib.rs @@ -10,7 +10,6 @@ // Re-export liballoc using an alias so that the macros can work without // requiring `extern crate alloc` downstream. -#[cfg(not(feature = "std"))] #[doc(hidden)] pub extern crate alloc as alloc_;