summaryrefslogtreecommitdiffstats
path: root/ffi-macros
diff options
context:
space:
mode:
authorLars Wirzenius <liw@sequoia-pgp.org>2021-09-29 15:19:11 +0300
committerLars Wirzenius <liw@sequoia-pgp.org>2021-09-30 08:31:20 +0300
commitfb1cbb2c31537c6e24d70ce44a00a28e3281f37b (patch)
treebf0877716e3c9e6469b36d57900b4c114075abc0 /ffi-macros
parent347e9519954b1a7702d7120d6c265ea3d82b64cc (diff)
Annotate functions where single_match is OK
See https://rust-lang.github.io/rust-clippy/master/index.html#single_match
Diffstat (limited to 'ffi-macros')
-rw-r--r--ffi-macros/src/rust2c.rs1
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(),