Skip to content

Commit

Permalink
Simplify some lines
Browse files Browse the repository at this point in the history
  • Loading branch information
walles committed Oct 19, 2024
1 parent e530f78 commit ea583eb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/token_collector.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,7 @@ fn render_row(line_style: &LineStyle, prefix: &str, row: &[StyledToken]) -> Stri
Style::DiffPartUnchangedUnderlined => line_style.unchanged_with_underline_style,
Style::DiffPartMidlighted => line_style.midlighted_style,
Style::DiffPartHighlighted => line_style.highlighted_style,
Style::Error => AnsiStyle {
color: Red,
weight: Weight::Normal,
underline: false,
inverse: true,
},
Style::Error => ANSI_STYLE_NORMAL.with_color(Red).with_inverse(true),
};

rendered.push_str(&new_style.from(&current_style));
Expand Down

0 comments on commit ea583eb

Please sign in to comment.