Skip to content

Commit d546c16

Browse files
committed
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".
1 parent 5a7cede commit d546c16

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/context.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,17 +121,14 @@ mod alloc_only {
121121
const ALIGN_TO: usize = core::mem::align_of::<AlignedType>();
122122

123123
/// Represents the set of capabilities needed for signing.
124-
#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
125124
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
126125
pub enum SignOnly {}
127126

128127
/// Represents the set of capabilities needed for verification.
129-
#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
130128
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
131129
pub enum VerifyOnly {}
132130

133131
/// Represents the set of all capabilities.
134-
#[cfg_attr(docsrs, doc(cfg(any(feature = "std", feature = "alloc"))))]
135132
#[derive(Copy, Clone, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
136133
pub enum All {}
137134

0 commit comments

Comments
 (0)