From c0c4d59bbae688074184b186e08c6bf8e23c5705 Mon Sep 17 00:00:00 2001 From: Benedikt Mandelkow Date: Fri, 16 Feb 2024 11:25:36 +0100 Subject: [PATCH] fix indenting by removing formatting on the config str --- src/plumbing/progress.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/plumbing/progress.rs b/src/plumbing/progress.rs index e3311beb094..1668038de6f 100644 --- a/src/plumbing/progress.rs +++ b/src/plumbing/progress.rs @@ -1,6 +1,5 @@ use std::fmt::{Display, Formatter}; -use crosstermion::crossterm::style::Stylize; use owo_colors::OwoColorize; #[derive(Clone)] @@ -46,7 +45,7 @@ impl Display for Usage { impl Usage { pub fn icon(&self) -> &'static str { match self { - Puzzled => "?", + Puzzled => "❓", NotApplicable { .. } => "❌", Planned { .. } => "🕒", NotPlanned { .. } => "🤔", @@ -546,11 +545,10 @@ pub fn show_progress() -> anyhow::Result<()> { "{icon} {config: <50}: {usage}", icon = usage.icon(), config = if let Some(config) = config.strip_prefix("gitoxide.") { - format!("{gitoxide}{config}", gitoxide = "gitoxide.".green()) + format!("{gitoxide}{config}", gitoxide = "gitoxide.") } else { config.to_string() } - .bold(), ); }