diff options
author | Artem Vorotnikov <artem@vorotnikov.me> | 2019-12-14 09:01:47 +0300 |
---|---|---|
committer | Carl Lerche <me@carllerche.com> | 2019-12-13 22:01:47 -0800 |
commit | d593c5b051f07bde5117122216a356632986b6dd (patch) | |
tree | 87df3c4dd3a4cda23ae1125e8b78358804385edb /tokio/src/macros | |
parent | 91ecb4b4c2ec202b6754ccb5fb266a84fe3a7327 (diff) |
chore: remove benches and fix/work around clippy lints (#1952)
Diffstat (limited to 'tokio/src/macros')
-rw-r--r-- | tokio/src/macros/assert.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tokio/src/macros/assert.rs b/tokio/src/macros/assert.rs index fd6601b4..4f576092 100644 --- a/tokio/src/macros/assert.rs +++ b/tokio/src/macros/assert.rs @@ -11,9 +11,8 @@ macro_rules! assert_some { /// Assert option is none macro_rules! assert_none { ($e:expr) => {{ - match $e { - Some(v) => panic!("expected none, was {:?}", v), - _ => {} + if let Some(v) = $e { + panic!("expected none, was {:?}", v); } }}; } |