Skip to content

Commit

Permalink
chore: tidy up code
Browse files Browse the repository at this point in the history
  • Loading branch information
sgoudham committed Nov 6, 2024
1 parent e4ee6a8 commit faeb761
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -310,10 +310,8 @@ fn make_flavor_ansi_colors_all_impl(sample_flavor: &Flavor) -> TokenStream {
let ident = format_ident!("{identifier}");
quote! { &self.#ident }
});
let ansi_color_pairs = ansi_color_pairs_in_order(sample_flavor).map(|(identifier, color_pair)| {
let entry = make_ansi_color_pair_entry(identifier, color_pair);
entry
});
let ansi_color_pairs = ansi_color_pairs_in_order(sample_flavor)
.map(|(identifier, color_pair)| make_ansi_color_pair_entry(identifier, color_pair));
quote! {
impl FlavorAnsiColors {
/// Get an array of the ANSI colors in the flavor.
Expand All @@ -324,6 +322,7 @@ fn make_flavor_ansi_colors_all_impl(sample_flavor: &Flavor) -> TokenStream {
]
}

///
#[must_use]
pub const fn to_ansi_color_pairs(&self) -> FlavorAnsiColorPairs {
FlavorAnsiColorPairs {
Expand Down

0 comments on commit faeb761

Please sign in to comment.