fix: fix a small clippy lint

error: binding's name is too similar to existing binding
This commit is contained in:
Josh McKinney 2024-04-26 22:47:27 -07:00
parent af8da7f06c
commit 38e529fe6b
No known key found for this signature in database
GPG key ID: 722287396A903BC5

View file

@ -146,9 +146,10 @@ where
modifier = cell.modifier; modifier = cell.modifier;
} }
if cell.fg != fg || cell.bg != bg { if cell.fg != fg || cell.bg != bg {
let fg_color = CColor::from(cell.fg); queue!(
let bg_color = CColor::from(cell.bg); self.writer,
queue!(self.writer, SetColors(Colors::new(fg_color, bg_color)))?; SetColors(Colors::new(cell.fg.into(), cell.bg.into()))
)?;
fg = cell.fg; fg = cell.fg;
bg = cell.bg; bg = cell.bg;
} }