Add lint overrides for unused extern crate hashmap_core.

This allows these files to build with both the `no_std` and `std`
features enabled at the same time.
This commit is contained in:
Dan Gohman
2018-03-12 14:09:34 -07:00
parent 1a671cf82f
commit aaf0def241
2 changed files with 2 additions and 0 deletions

View File

@@ -9,6 +9,7 @@
#![cfg_attr(not(feature = "std"), feature(alloc))] #![cfg_attr(not(feature = "std"), feature(alloc))]
// Include the `hashmap_core` crate if no_std // Include the `hashmap_core` crate if no_std
#[allow(unused_extern_crates)]
#[cfg(feature = "no_std")] #[cfg(feature = "no_std")]
extern crate hashmap_core; extern crate hashmap_core;
#[cfg(not(feature = "std"))] #[cfg(not(feature = "std"))]

View File

@@ -20,6 +20,7 @@
#[macro_use] #[macro_use]
extern crate alloc; extern crate alloc;
#[allow(unused_extern_crates)]
#[cfg(feature = "no_std")] #[cfg(feature = "no_std")]
extern crate hashmap_core; extern crate hashmap_core;