style: 💄 formatting style

This commit is contained in:
Lucas Colombo 2024-03-31 01:34:22 -03:00
parent 7d79868eb4
commit 081d16b5c9
Signed by: lucas
GPG Key ID: EF34786CFEFFAE35

View File

@ -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 {