From 081d16b5c9a5460355217514120128827961ae94 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Sun, 31 Mar 2024 01:34:22 -0300 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20formatting=20style?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cli/stylize/stylizer.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/cli/stylize/stylizer.rs b/lib/cli/stylize/stylizer.rs index a6f9317..225d50b 100644 --- a/lib/cli/stylize/stylizer.rs +++ b/lib/cli/stylize/stylizer.rs @@ -95,6 +95,7 @@ pub mod instructions { /// /// `Trait` that extends `String` and `str` with the ability to stylize them /// with ANSI color and attrs, using methods that return a new string with the given style. +#[rustfmt::skip] pub trait Stylize { /// Basic styling method, receives a styling instruction /// see the `stylize` function for more information @@ -141,7 +142,7 @@ pub trait Stylize { fn reverse(&self) -> String { self.stl("+reverse") } fn hidden(&self) -> String { self.stl("+hidden") } fn strikethrough(&self) -> String { self.stl("+strikethrough") } -} +} impl Stylize for str { fn stl(&self, instruction: &str) -> String {