From 036e9cae7fea351e5e422f5e164025d09039db9e Mon Sep 17 00:00:00 2001 From: Alissa Rao Date: Mon, 4 Apr 2022 00:34:52 -0700 Subject: [PATCH] Suppress certain clippy warnings. Fixes #28. --- enumset/src/lib.rs | 3 +++ enumset_derive/src/lib.rs | 1 + 2 files changed, 4 insertions(+) diff --git a/enumset/src/lib.rs b/enumset/src/lib.rs index f6c04ce..cc3fce9 100644 --- a/enumset/src/lib.rs +++ b/enumset/src/lib.rs @@ -1,6 +1,9 @@ #![no_std] #![forbid(missing_docs)] +// The safety requirement is "use the procedural derive". +#![allow(clippy::missing_safety_doc)] + //! A library for defining enums that can be used in compact bit sets. It supports enums up to 128 //! variants, and has a macro to use these sets in constants. //! diff --git a/enumset_derive/src/lib.rs b/enumset_derive/src/lib.rs index 6c0cac5..993ccc0 100644 --- a/enumset_derive/src/lib.rs +++ b/enumset_derive/src/lib.rs @@ -452,6 +452,7 @@ fn enum_set_type_impl(info: EnumSetInfo) -> SynTokenStream { } } impl #core::cmp::Eq for #name { } + #[allow(clippy::expl_impl_clone_on_copy)] impl #core::clone::Clone for #name { fn clone(&self) -> Self { *self -- 2.44.0