Skip to content

Commit

Permalink
Update hashmap.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
martial-plains authored Mar 6, 2024
1 parent a443686 commit c22d8d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/macros/hashmap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ pub macro hashmap {
($($key:expr => $value:expr,)+) => { hashmap!($($key => $value),+) },
($($key:expr => $value:expr),*) => {
{
#[cfg(not(target_feature = "std"))]
#[cfg(not(feature = "std"))]
use hashbrown::HashMap;
#[cfg(target_feature = "std")]
#[cfg(feature = "std")]
use std::collections::HashMap;

let capacity = hashmap!(@count $($key),*);
Expand Down

0 comments on commit c22d8d2

Please sign in to comment.