diff options
author | Aleksey Kladov <[email protected]> | 2019-01-25 07:08:21 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-01-25 07:08:21 +0000 |
commit | 857c35ddb03ee5db97bbb4743dfeedeb3df350ec (patch) | |
tree | f142de082849544273bc7b65c823e45a095b30b2 /crates/test_utils | |
parent | 1d4b421aad0bbcd26d88e65b28dbbb4efb51d155 (diff) |
refactor import resolution
extract path resolution
use enums instead of bools
Diffstat (limited to 'crates/test_utils')
-rw-r--r-- | crates/test_utils/src/marks.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/test_utils/src/marks.rs b/crates/test_utils/src/marks.rs index 79ffedf69..ee47b5219 100644 --- a/crates/test_utils/src/marks.rs +++ b/crates/test_utils/src/marks.rs | |||
@@ -46,11 +46,13 @@ macro_rules! covers { | |||
46 | } | 46 | } |
47 | 47 | ||
48 | #[macro_export] | 48 | #[macro_export] |
49 | macro_rules! mark { | 49 | macro_rules! marks { |
50 | ($ident:ident) => { | 50 | ($($ident:ident)*) => { |
51 | $( | ||
51 | #[allow(bad_style)] | 52 | #[allow(bad_style)] |
52 | pub(crate) static $ident: std::sync::atomic::AtomicUsize = | 53 | pub(crate) static $ident: std::sync::atomic::AtomicUsize = |
53 | std::sync::atomic::AtomicUsize::new(0); | 54 | std::sync::atomic::AtomicUsize::new(0); |
55 | )* | ||
54 | }; | 56 | }; |
55 | } | 57 | } |
56 | 58 | ||