From 120626194365dc474a55a4cb2a1b33b12c0e2bc3 Mon Sep 17 00:00:00 2001 From: Lucas Colombo Date: Mon, 1 Apr 2024 01:31:13 -0300 Subject: [PATCH] =?UTF-8?q?style:=20=F0=9F=92=84=20fmt=20and=20lint?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/cli/stylize.rs | 2 +- lib/cli/stylize/stylizer.rs | 4 ++-- lib/logger/mod.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/cli/stylize.rs b/lib/cli/stylize.rs index 315225f..65c707e 100644 --- a/lib/cli/stylize.rs +++ b/lib/cli/stylize.rs @@ -1,7 +1,7 @@ mod style; mod stylizer; -pub use stylizer::{stylize, stl, Stylize}; +pub use stylizer::{stl, stylize, Stylize}; #[cfg(test)] mod tests; diff --git a/lib/cli/stylize/stylizer.rs b/lib/cli/stylize/stylizer.rs index ea0d0d7..00b7257 100644 --- a/lib/cli/stylize/stylizer.rs +++ b/lib/cli/stylize/stylizer.rs @@ -242,8 +242,8 @@ pub fn stylize>(s: S, instructions: &str) -> String { /// -- /// /// Stylizes a string with optional ANSI color and attributes. -/// +/// /// This is an alias for the `stylize` function. pub fn stl>(s: S, instructions: &str) -> String { stylize(s, instructions) -} \ No newline at end of file +} diff --git a/lib/logger/mod.rs b/lib/logger/mod.rs index d8663fb..d827148 100644 --- a/lib/logger/mod.rs +++ b/lib/logger/mod.rs @@ -39,7 +39,7 @@ impl StyledRecord { file: format!( "{}{}{}", file_ansi_color, - record.file().unwrap_or("unknown").replace("\\", "/"), + record.file().unwrap_or("unknown").replace('\\', "/"), RESET ), line: format!("{}{}{}", line_ansi_color, record.line().unwrap_or(0), RESET),