Support CLI syntax for changing tags

This commit is contained in:
Dustin J. Mitchell
2020-12-21 19:40:07 +00:00
parent 28c5fb2268
commit 54e8484bc2
4 changed files with 97 additions and 35 deletions

View File

@@ -10,3 +10,17 @@ macro_rules! argv {
&[$($x),*][..]
);
}
/// Create a hashset, similar to vec!
#[cfg(test)]
macro_rules! set(
{ $($key:expr),+ } => {
{
let mut s = ::std::collections::HashSet::new();
$(
s.insert($key);
)+
s
}
};
);