From d546c161349fd3ccb17540c6abcc4005370efbb2 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Thu, 10 Nov 2022 11:43:08 +1100 Subject: [PATCH] Remove cfg docs feature requirements The `alloc_only` module already has a docs guard on the "alloc" feature, using an additional docs guard on the `SignOnly`, `VerifyOnly`, `All` enums leads to a redundant feature combination "alloc" and "alloc or std" - we really only require "alloc". --- src/context.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/context.rs b/src/context.rs index 583c780..2f0fbe2 100644 --- a/src/context.rs +++ b/src/context.rs @@ -121,17 +121,14 @@ mod alloc_only { const ALIGN_TO: usize = core::mem::align_of::(); /// Represents the set of capabilities needed for signing. - #[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))] #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum SignOnly {} /// Represents the set of capabilities needed for verification. - #[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))] #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum VerifyOnly {} /// Represents the set of all capabilities. - #[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))] #[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)] pub enum All {}