|
7 | 7 | #[macro_export] |
8 | 8 | macro_rules! assert_keys { |
9 | 9 | ($account_a: expr, $account_b: expr $(,)?) => { |
10 | | - assert_keys_eq!($account_a, $account_b, "key mismatch") |
| 10 | + $crate::assert_keys_eq!($account_a, $account_b, "key mismatch") |
11 | 11 | }; |
12 | 12 | ($account_a: expr, $account_b: expr, $msg: expr $(,)?) => { |
13 | | - assert_keys_eq!($account_a, $account_b, $msg) |
| 13 | + $crate::assert_keys_eq!($account_a, $account_b, $msg) |
14 | 14 | }; |
15 | 15 | } |
16 | 16 |
|
@@ -158,7 +158,7 @@ macro_rules! assert_keys_eq { |
158 | 158 | msg!(stringify!($account_a != $account_b)); |
159 | 159 | msg!("Left: {}", __account_a); |
160 | 160 | msg!("Right: {}", __account_b); |
161 | | - throw_err!($err); |
| 161 | + $crate::throw_err!($err); |
162 | 162 | } |
163 | 163 | }; |
164 | 164 | } |
@@ -209,7 +209,7 @@ macro_rules! assert_keys_neq { |
209 | 209 | msg!(stringify!($account_a == $account_b)); |
210 | 210 | msg!("Left: {}", __account_a); |
211 | 211 | msg!("Right: {}", __account_b); |
212 | | - throw_err!($err); |
| 212 | + $crate::throw_err!($err); |
213 | 213 | } |
214 | 214 | }; |
215 | 215 | } |
@@ -324,7 +324,7 @@ macro_rules! throw_err { |
324 | 324 | throw_err!(crate::ErrorCode::$error); |
325 | 325 | }; |
326 | 326 | ($error:expr $(,)?) => { |
327 | | - log_code_location!(); |
| 327 | + $crate::log_code_location!(); |
328 | 328 | return Err($error.into()); |
329 | 329 | }; |
330 | 330 | } |
@@ -401,7 +401,7 @@ macro_rules! unwrap_opt { |
401 | 401 | ($option:expr, $err:expr, $msg: expr $(,)?) => { |
402 | 402 | $option.ok_or_else(|| -> ProgramError { |
403 | 403 | msg!("Option unwrap failed: {:?}", $err); |
404 | | - log_code_location!(); |
| 404 | + $crate::log_code_location!(); |
405 | 405 | $crate::VipersError::OptionUnwrapFailed.into() |
406 | 406 | })? |
407 | 407 | }; |
|
0 commit comments