component/test: fmt

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2023-10-26 00:47:27 +02:00
parent 4c9165a602
commit bad6a425a8
Signed by: pep
GPG key ID: DEDA74AEECA9D0F2

View file

@ -262,7 +262,9 @@ impl Component {
});
}
if ! color_added && ! color_start && let Some(ref color) = last_color {
if !color_added
&& !color_start && let Some(ref color) = last_color
{
// Change background
buf_expected.push_str(format!("{}{}", color, "\x1b[48;5;8m").as_str());
color_added = true;