Skip to content

Commit

Permalink
fix: use value attribute only when clap feature is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
amr-crabnebula committed Oct 4, 2023
1 parent e95eac1 commit 95e8e68
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions crates/config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ mod category;
pub use category::AppCategory;

/// The type of the package we're packaging.
#[non_exhaustive]
#[derive(Clone, Copy, Debug, Eq, PartialEq, Deserialize, Serialize, JsonSchema)]
#[cfg_attr(feature = "clap", derive(clap::ValueEnum))]
#[non_exhaustive]
#[value(rename_all = "lowercase")]
#[cfg_attr(feature = "clap", value(rename_all = "lowercase"))]
#[serde(rename_all = "lowercase")]
pub enum PackageFormat {
/// All available package formats for the current platform.
Expand Down

0 comments on commit 95e8e68

Please sign in to comment.