mirror of
https://github.com/openharmony/third_party_rust_indexmap.git
synced 2026-07-20 19:48:22 -04:00
FEAT: indexmap!() macros require std
(Due to using the ::with_capacity method.)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
|
||||
#[cfg(has_std)]
|
||||
#[macro_export(local_inner_macros)]
|
||||
/// Create an `IndexMap` from a list of key-value pairs
|
||||
///
|
||||
@@ -37,6 +38,7 @@ macro_rules! indexmap {
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(has_std)]
|
||||
#[macro_export(local_inner_macros)]
|
||||
/// Create an `IndexSet` from a list of values
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user