Skip to content

Commit

Permalink
extern alloc only when 'alloc' feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamik Chakraborty committed May 8, 2023
1 parent bdd5f5c commit a197177
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions enumset/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
//! assert_eq!(set, Enum::A | Enum::E | Enum::G);
//! ```
#[cfg(feature = "alloc")]
extern crate alloc;

mod macros;
Expand Down

0 comments on commit a197177

Please sign in to comment.