From c66945d2f1750f9278cd9a35f03a83795a690e16 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 15 Nov 2024 17:58:02 +0900 Subject: [PATCH] fix: --no-color case --- src/detections/detection.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/detections/detection.rs b/src/detections/detection.rs index f951c56d9..e8cd82255 100644 --- a/src/detections/detection.rs +++ b/src/detections/detection.rs @@ -1299,7 +1299,10 @@ impl Detection { let val = value.to_formatted_string(&Locale::en); write_color_buffer( &BufferWriter::stdout(ColorChoice::Always), - Some(Color::Rgb(0, 255, 0)), + get_writable_color( + Some(Color::Rgb(0, 255, 0)), + stored_static.common_options.no_color, + ), key.as_str(), false, )