From bad6a425a877467bbe40bde5283267b1d494b562 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Thu, 26 Oct 2023 00:47:27 +0200 Subject: [PATCH] component/test: fmt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/component/test.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;