Skip to content

Commit 2429761

Browse files
committed
Ignore clippy warnings about complex types
One of the new functions in PKCS#11 3.2 have 10(!) arguments, which goes over the threshold of what clippy considers reasonable. But given that we need to be compatible with this API, there is no other reasonable way to tackle this than to ignore the warning/error. error: very complex type used. Consider factoring parts into `type` definitions --> /home/runner/work/rust-cryptoki/rust-cryptoki/cryptoki-sys/src/bindings/x86_64-unknown-linux-gnu.rs:6801:35 | 6801 | pub C_UnwrapKeyAuthenticated: Result< | ___________________________________^ 6802 | | unsafe extern "C" fn( 6803 | | arg1: CK_SESSION_HANDLE, 6804 | | arg2: *mut CK_MECHANISM, ... | 6814 | | ::libloading::Error, 6815 | | >, | |_____^ | Signed-off-by: Jakub Jelen <jjelen@redhat.com>
1 parent 8142871 commit 2429761

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cryptoki-sys/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
#![allow(clippy::missing_safety_doc)]
88
#![allow(clippy::string_lit_as_bytes)]
99
#![allow(clippy::too_many_arguments)]
10+
// Public items exportedby this crate should match the C API
11+
#![allow(clippy::type_complexity)]
1012
// Public items exportedby this crate should match the C style
1113
#![allow(clippy::upper_case_acronyms)]
1214
// Suppress warnings from bindgen-generated code

0 commit comments

Comments
 (0)