surrealpatch/lib/src/mac/mod.rs

14 lines
273 B
Rust
Raw Normal View History

macro_rules! output {
($expression:expr) => {
bytes::Bytes::from(format!("{}\n", $expression))
};
}
macro_rules! map {
($($k:expr => $v:expr),* $(,)?) => {{
let mut m = ::std::collections::BTreeMap::new();
$(m.insert($k, $v);)+
m
}};
}