openethereum/src/macros.rs

12 lines
236 B
Rust
Raw Normal View History

2015-11-28 17:08:38 +01:00
macro_rules! map(
{ $($key:expr => $value:expr),+ } => {
{
let mut m = ::std::collections::HashMap::new();
$(
m.insert($key, $value);
)+
m
}
};
);