Skip to content

Commit

Permalink
Hide Debug behind debug feature (#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Dec 3, 2023
1 parent 35f32b1 commit beb68fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion utoipa-gen/src/component/serde.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ impl SerdeValue {

/// The [Serde Enum representation](https://serde.rs/enum-representations.html) being used
/// The default case (when no serde attributes are present) is `ExternallyTagged`.
#[derive(Clone, Debug)]
#[derive(Clone)]
#[cfg_attr(feature = "debug", derive(Debug))]
pub enum SerdeEnumRepr {
ExternallyTagged,
InternallyTagged {
Expand Down
3 changes: 2 additions & 1 deletion utoipa/src/openapi/security.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ use super::builder;
/// [path]: ../../attr.path.html
/// [openapi]: ../../derive.OpenApi.html
#[non_exhaustive]
#[derive(Serialize, Deserialize, Debug, Default, Clone, PartialEq, Eq)]
#[derive(Serialize, Deserialize, Default, Clone, PartialEq, Eq)]
#[cfg_attr(feature = "debug", derive(Debug))]
pub struct SecurityRequirement {
#[serde(flatten)]
value: BTreeMap<String, Vec<String>>,
Expand Down

0 comments on commit beb68fa

Please sign in to comment.