diff options
Diffstat (limited to 'ffi-macros')
-rw-r--r-- | ffi-macros/src/rust2c.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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<T: ToTokens>(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(), |