From: Alissa Rao Date: Mon, 4 Apr 2022 07:34:52 +0000 (-0700) Subject: Suppress certain clippy warnings. Fixes #28. X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=036e9cae7fea351e5e422f5e164025d09039db9e;hp=df4bb69097fdd71b64378383293c2b617a2fbdae;p=enumset.git Suppress certain clippy warnings. Fixes #28. --- 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