commit | ef7a18970f309632e3a3015ac1c659d72d36967b | [log] [tgz] |
---|---|---|
author | Allen George <allen.george@gmail.com> | Sun Dec 16 18:01:37 2018 -0500 |
committer | GREATEST Wiggler EvaR! <allen@actioniq.com> | Sun Dec 16 18:22:04 2018 -0500 |
tree | fbffe5b4701a2fc2ceec4d0d0b80b8384cd5aee7 | |
parent | 2b7365c54f823013cc6a4760798051b22743c103 [diff] [blame] |
Reformat rust code with rustfmt 1.0
diff --git a/lib/rs/src/lib.rs b/lib/rs/src/lib.rs index 7ebb10c..ca5c7d6 100644 --- a/lib/rs/src/lib.rs +++ b/lib/rs/src/lib.rs
@@ -63,13 +63,11 @@ /// 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;