diff options
author | Robin Krahl <robin.krahl@ireas.org> | 2019-02-05 12:47:24 +0000 |
---|---|---|
committer | Robin Krahl <robin.krahl@ireas.org> | 2019-02-05 14:48:24 +0000 |
commit | 83641ca0518e4c766c63e40d0787e4f0b436652a (patch) | |
tree | 2993e03fa920a9045c7b2a32c742098601fcd5ba /tests/util | |
parent | 606177a61de39ba5e96390d63cff536f895d8c39 (diff) | |
download | nitrokey-rs-83641ca0518e4c766c63e40d0787e4f0b436652a.tar.gz nitrokey-rs-83641ca0518e4c766c63e40d0787e4f0b436652a.tar.bz2 |
Revert "Refactor User and Admin to use a mutable reference"
This reverts commit 0972bbe82623c3d9649b6023d8f50d304aa0cde6.
Diffstat (limited to 'tests/util')
-rw-r--r-- | tests/util/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/util/mod.rs b/tests/util/mod.rs index 5bd19d1..f2b20ec 100644 --- a/tests/util/mod.rs +++ b/tests/util/mod.rs @@ -3,7 +3,7 @@ #[macro_export] macro_rules! unwrap_ok { - ($val:expr) => { + ($val:expr) => {{ match $val { Ok(val) => val, Err(err) => panic!( @@ -13,12 +13,12 @@ macro_rules! unwrap_ok { err ), } - }; + }}; } #[macro_export] macro_rules! assert_any_ok { - ($val:expr) => { + ($val:expr) => {{ match &$val { Ok(_) => {} Err(err) => panic!( @@ -28,12 +28,12 @@ macro_rules! assert_any_ok { err ), } - }; + }}; } #[macro_export] macro_rules! assert_ok { - ($left:expr, $right:expr) => { + ($left:expr, $right:expr) => {{ match &$right { Ok(right) => match &$left { left => { @@ -54,7 +54,7 @@ macro_rules! assert_ok { $left, right_err ), } - }; + }}; } #[macro_export] |