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:
@@ -9,6 +9,7 @@
|
||||
#![cfg_attr(not(feature = "std"), feature(alloc))]
|
||||
|
||||
// Include the `hashmap_core` crate if no_std
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(feature = "no_std")]
|
||||
extern crate hashmap_core;
|
||||
#[cfg(not(feature = "std"))]
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#[macro_use]
|
||||
extern crate alloc;
|
||||
|
||||
#[allow(unused_extern_crates)]
|
||||
#[cfg(feature = "no_std")]
|
||||
extern crate hashmap_core;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user