Skip to content

Commit

Permalink
fix serialization of language enum
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Jun 20, 2022
1 parent e3c5f5d commit 15968d9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/info/langs/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,10 @@ macro_rules! define_languages {

#[derive(Clone, Copy, PartialEq, Eq, Hash, EnumIter, clap::ValueEnum)]
#[allow(clippy::upper_case_acronyms)]
#[clap(rename_all = "lowercase")]
pub enum Language {
$(
$( #[strum(serialize = $serialize)] )?
$( #[clap(name = $serialize)] )?
$name,
)*
}
Expand Down

0 comments on commit 15968d9

Please sign in to comment.