Use cfg(test) for test macros

This commit is contained in:
Michael Sproul
2019-03-05 17:18:41 +11:00
parent ebb7349ee3
commit d519bc1388
2 changed files with 7 additions and 6 deletions

View File

@@ -20,7 +20,7 @@ macro_rules! impl_crud_for_store {
};
}
#[allow(unused_macros)]
#[cfg(test)]
macro_rules! test_crud_for_store {
($store: ident, $db_column: expr) => {
#[test]