From 96e7e0936e52b4fa8f2115264a1b96e935349ca1 Mon Sep 17 00:00:00 2001 From: Aydin Mercan Date: Tue, 6 Sep 2022 22:30:14 +0300 Subject: [PATCH] clippy: explicitly allow unactionable lints * `TlsProfile` is better off sticking to the style used in standards. * `bearssl-sys` bindings can't be annotated with safety as they are autogenerated and have the same safety properties with the library itself. --- bearssl-sys/src/lib.rs | 3 ++- bearssl/src/profile.rs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bearssl-sys/src/lib.rs b/bearssl-sys/src/lib.rs index b9b1c17..bb1900b 100644 --- a/bearssl-sys/src/lib.rs +++ b/bearssl-sys/src/lib.rs @@ -1,7 +1,8 @@ #![no_std] -#![allow(non_upper_case_globals)] #![allow(non_camel_case_types)] #![allow(non_snake_case)] +#![allow(non_upper_case_globals)] +#![allow(clippy::missing_safety_doc)] #[cfg(feature = "dont-assume-size_t-equals-uintptr_t")] use libc::size_t; diff --git a/bearssl/src/profile.rs b/bearssl/src/profile.rs index 6ba7cdb..11d3d85 100644 --- a/bearssl/src/profile.rs +++ b/bearssl/src/profile.rs @@ -1,3 +1,5 @@ +#![allow(non_camel_case_types)] + pub enum KeyType { Rsa, EllipticCurve,