diff options
author | Pavel Roskin <1317472+proski@users.noreply.github.com> | 2023-07-18 13:42:35 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-18 20:42:35 +0000 |
commit | 395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7 (patch) | |
tree | 5ce894601390cfd1aa68ba9920c25d145c6e00f3 /alacritty/src | |
parent | 31fe27b237708ec5f18eee2b326c3efc112216bc (diff) | |
download | r-alacritty-395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7.tar.gz r-alacritty-395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7.tar.bz2 r-alacritty-395ad40bc11a3328abf0e1d3da6f39d2ffb9a7f7.zip |
Remove unnecessary mutable references
Diffstat (limited to 'alacritty/src')
-rw-r--r-- | alacritty/src/display/content.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/display/content.rs b/alacritty/src/display/content.rs index 72f71e9b..f4e34c10 100644 --- a/alacritty/src/display/content.rs +++ b/alacritty/src/display/content.rs @@ -303,7 +303,7 @@ impl RenderableCell { } /// Get the RGB color from a cell's foreground color. - fn compute_fg_rgb(content: &mut RenderableContent<'_>, fg: Color, flags: Flags) -> Rgb { + fn compute_fg_rgb(content: &RenderableContent<'_>, fg: Color, flags: Flags) -> Rgb { let config = &content.config; match fg { Color::Spec(rgb) => match flags & Flags::DIM { @@ -351,7 +351,7 @@ impl RenderableCell { /// Get the RGB color from a cell's background color. #[inline] - fn compute_bg_rgb(content: &mut RenderableContent<'_>, bg: Color) -> Rgb { + fn compute_bg_rgb(content: &RenderableContent<'_>, bg: Color) -> Rgb { match bg { Color::Spec(rgb) => rgb.into(), Color::Named(ansi) => content.color(ansi as usize), |