From a9e4a697f75249635cb417266c6da07c4de9381b Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 29 Jun 2019 17:35:56 +0200 Subject: [PATCH] Fix clippy warning --- opensmtpd-derive/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opensmtpd-derive/src/lib.rs b/opensmtpd-derive/src/lib.rs index 72999d1..8c32abe 100644 --- a/opensmtpd-derive/src/lib.rs +++ b/opensmtpd-derive/src/lib.rs @@ -56,7 +56,7 @@ pub fn event(attr: TokenStream, input: TokenStream) -> TokenStream { let fn_params = &item.decl.inputs; let (ctx_type, callback_type) = match get_type(fn_params) { Ok(t) => t, - Err(_) => { + Err(_e) => { panic!(); } };