diff options
author | Allen George <allen.george@gmail.com> | 2018-12-16 18:01:37 -0500 |
---|---|---|
committer | GREATEST Wiggler EvaR! <allen@actioniq.com> | 2018-12-16 18:22:04 -0500 |
commit | ef7a18970f309632e3a3015ac1c659d72d36967b (patch) | |
tree | fbffe5b4701a2fc2ceec4d0d0b80b8384cd5aee7 /lib/rs/src/lib.rs | |
parent | 2b7365c54f823013cc6a4760798051b22743c103 (diff) | |
download | thrift-ef7a18970f309632e3a3015ac1c659d72d36967b.tar.gz |
Reformat rust code with rustfmt 1.0
Diffstat (limited to 'lib/rs/src/lib.rs')
-rw-r--r-- | lib/rs/src/lib.rs | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/lib/rs/src/lib.rs b/lib/rs/src/lib.rs index 7ebb10cc4..ca5c7d649 100644 --- a/lib/rs/src/lib.rs +++ b/lib/rs/src/lib.rs @@ -63,13 +63,11 @@ extern crate log; /// return the value contained in the result, i.e. `expr.unwrap()`. #[cfg(test)] macro_rules! assert_success { - ($e: expr) => { - { - let res = $e; - assert!(res.is_ok()); - res.unwrap() - } - } + ($e: expr) => {{ + let res = $e; + assert!(res.is_ok()); + res.unwrap() + }}; } pub mod protocol; |