Skip to content

Commit

Permalink
fix warning: derive helper attribute is used before it is introduced
Browse files Browse the repository at this point in the history
  • Loading branch information
o2sh committed Jun 25, 2021
1 parent 28a1c13 commit 2e39715
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/onefetch/language.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ macro_rules! define_colors {
macro_rules! define_languages {
($( { $name:ident, $ascii:literal, $display:literal, $colors:expr $(, $serialize:literal )? } ),* ,) => {

#[strum(serialize_all = "lowercase")]
#[derive(PartialEq, Eq, Hash, Clone, EnumString, EnumIter, IntoStaticStr, Serialize)]
#[strum(serialize_all = "lowercase")]
pub enum Language {
$(
$( #[strum(serialize = $serialize)] )?
Expand Down

0 comments on commit 2e39715

Please sign in to comment.