From edad11013d6f7bc33defa2ecb53bd835812ff6c8 Mon Sep 17 00:00:00 2001 From: shimaowo <45767709+shimaowo@users.noreply.github.com> Date: Tue, 30 May 2023 12:42:10 -0700 Subject: [PATCH] run rustfmt --- src/config.rs | 6 +++--- src/loggers/logging.rs | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/config.rs b/src/config.rs index 17044801..e2a0c283 100644 --- a/src/config.rs +++ b/src/config.rs @@ -87,7 +87,7 @@ pub struct Config { pub(crate) level_color: [Option; 6], pub(crate) write_log_enable_colors: bool, #[cfg(feature = "paris")] - pub(crate) enable_paris_formatting: bool + pub(crate) enable_paris_formatting: bool, } /// Builder for the Logger Configurations (`Config`) @@ -245,7 +245,7 @@ impl ConfigBuilder { } /// set if you want paris formatting to be applied to this logger (default is On) - /// + /// /// If disabled, paris markup and formatting will be stripped. #[cfg(feature = "paris")] pub fn set_enable_paris_formatting(&mut self, enable_formatting: bool) -> &mut ConfigBuilder { @@ -352,7 +352,7 @@ impl Default for Config { ], #[cfg(feature = "paris")] - enable_paris_formatting: true + enable_paris_formatting: true, } } } diff --git a/src/loggers/logging.rs b/src/loggers/logging.rs index 3622bcae..a19d5098 100644 --- a/src/loggers/logging.rs +++ b/src/loggers/logging.rs @@ -217,7 +217,14 @@ pub fn write_args(record: &Record<'_>, write: &mut W, with_colors: bool) -> R where W: Write + Sized, { - writeln!(write, "{}", crate::__private::paris::formatter::format_string(format!("{}", record.args()), with_colors))?; + writeln!( + write, + "{}", + crate::__private::paris::formatter::format_string( + format!("{}", record.args()), + with_colors + ) + )?; Ok(()) }