From fb1cbb2c31537c6e24d70ce44a00a28e3281f37b Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Wed, 29 Sep 2021 15:19:11 +0300 Subject: Annotate functions where single_match is OK See https://rust-lang.github.io/rust-clippy/master/index.html#single_match --- ffi-macros/src/rust2c.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'ffi-macros') diff --git a/ffi-macros/src/rust2c.rs b/ffi-macros/src/rust2c.rs index 97ad2b53..44e25978 100644 --- a/ffi-macros/src/rust2c.rs +++ b/ffi-macros/src/rust2c.rs @@ -132,6 +132,7 @@ fn type2c(typ: T) -> String { c_typ } +#[allow(clippy::single_match)] pub fn rust2c(fun: &syn::ItemFn) -> String { let return_type = match &fun.sig.output { syn::ReturnType::Default => "void".into(), -- cgit v1.2.3