diff --git a/src/loggers/logging.rs b/src/loggers/logging.rs index 37c2f5f7..4366ba87 100644 --- a/src/loggers/logging.rs +++ b/src/loggers/logging.rs @@ -62,7 +62,12 @@ where } #[cfg(feature = "paris")] - return write_args(record, write, config.enable_paris_formatting, &config.line_ending); + return write_args( + record, + write, + config.enable_paris_formatting, + &config.line_ending, + ); #[cfg(not(feature = "paris"))] return write_args(record, write, &config.line_ending); } @@ -227,7 +232,12 @@ where #[inline(always)] #[cfg(feature = "paris")] -pub fn write_args(record: &Record<'_>, write: &mut W, with_colors: bool, line_ending: &str) -> Result<(), Error> +pub fn write_args( + record: &Record<'_>, + write: &mut W, + with_colors: bool, + line_ending: &str, +) -> Result<(), Error> where W: Write + Sized, { diff --git a/src/loggers/termlog.rs b/src/loggers/termlog.rs index b73b2c06..460c36e6 100644 --- a/src/loggers/termlog.rs +++ b/src/loggers/termlog.rs @@ -176,7 +176,12 @@ impl TermLogger { } #[cfg(feature = "paris")] - write_args(record, term_lock, self.config.enable_paris_formatting)?; + write_args( + record, + term_lock, + self.config.enable_paris_formatting, + &self.config.line_ending, + )?; #[cfg(not(feature = "paris"))] write_args(record, term_lock, &self.config.line_ending)?;