]> git.lizzy.rs Git - enumset.git/commitdiff
Suppress certain clippy warnings. Fixes #28.
authorAlissa Rao <lymia@lymiahugs.com>
Mon, 4 Apr 2022 07:34:52 +0000 (00:34 -0700)
committerAlissa Rao <lymia@lymiahugs.com>
Mon, 4 Apr 2022 07:35:03 +0000 (00:35 -0700)
enumset/src/lib.rs
enumset_derive/src/lib.rs

index f6c04ce31a67ba09c7fa2403976335ebb42d7605..cc3fce984a6b0b7dd667460208f83def34a446c1 100644 (file)
@@ -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.
 //!
index 6c0cac5af0ec8aae23dcec62813f1f22ce630c93..993ccc071af965edfb2bfdbff0b37019dc8b4f96 100644 (file)
@@ -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