Skip to content

Commit aa0778a

Browse files
committed
FEAT: indexmap!() macros require std
(Due to using the ::with_capacity method.)
1 parent b962088 commit aa0778a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/macros.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

2+
#[cfg(has_std)]
23
#[macro_export(local_inner_macros)]
34
/// Create an `IndexMap` from a list of key-value pairs
45
///
@@ -37,6 +38,7 @@ macro_rules! indexmap {
3738
};
3839
}
3940

41+
#[cfg(has_std)]
4042
#[macro_export(local_inner_macros)]
4143
/// Create an `IndexSet` from a list of values
4244
///

0 commit comments

Comments
 (0)