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),