surrealpatch/src/mac/mod.rs
2022-06-20 02:13:28 +01:00

7 lines
168 B
Rust

macro_rules! map {
($($k:expr => $v:expr),* $(,)?) => {{
let mut m = ::std::collections::BTreeMap::new();
$(m.insert($k, $v);)+
m
}};
}