diff --git a/src/component/test.rs b/src/component/test.rs index 631adb0..b1442eb 100644 --- a/src/component/test.rs +++ b/src/component/test.rs @@ -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;