Skip to content

Commit

Permalink
fix: Qualify the VARIANTS call in the config macro
Browse files Browse the repository at this point in the history
  • Loading branch information
poljar committed Oct 14, 2024
1 parent 8c7a333 commit a99b32a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/weechat/src/config_macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ macro_rules! option_settings {
.description($description)
.default_value(<$out_type>::default() as i32)
.string_values(
<$out_type>::VARIANTS.iter().map(|v| v.to_string()).collect::<Vec<String>>(),
<$out_type as weechat::strum::VariantNames>::VARIANTS
.iter()
.map(|v| v.to_string())
.collect::<Vec<String>>(),
);
};
}
Expand Down

0 comments on commit a99b32a

Please sign in to comment.