From d593c5b051f07bde5117122216a356632986b6dd Mon Sep 17 00:00:00 2001 From: Artem Vorotnikov Date: Sat, 14 Dec 2019 09:01:47 +0300 Subject: chore: remove benches and fix/work around clippy lints (#1952) --- tokio/src/macros/assert.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tokio/src/macros') 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); } }}; } -- cgit v1.2.3