Skip to content

Commit

Permalink
run rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
shimaowo committed May 30, 2023
1 parent b997b2a commit edad110
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/config.rs
Expand Up @@ -87,7 +87,7 @@ pub struct Config {
pub(crate) level_color: [Option<Color>; 6],
pub(crate) write_log_enable_colors: bool,

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (beta, --no-default-features --features "test")

field `write_log_enable_colors` is never read

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (nightly, --no-default-features)

field `write_log_enable_colors` is never read

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (beta, --no-default-features)

field `write_log_enable_colors` is never read

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (nightly, --no-default-features --features "test")

field `write_log_enable_colors` is never read

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (stable, --no-default-features --features "test")

field `write_log_enable_colors` is never read

Check warning on line 88 in src/config.rs

View workflow job for this annotation

GitHub Actions / test (stable, --no-default-features)

field `write_log_enable_colors` is never read
#[cfg(feature = "paris")]
pub(crate) enable_paris_formatting: bool
pub(crate) enable_paris_formatting: bool,
}

/// Builder for the Logger Configurations (`Config`)
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -352,7 +352,7 @@ impl Default for Config {
],

#[cfg(feature = "paris")]
enable_paris_formatting: true
enable_paris_formatting: true,
}
}
}
9 changes: 8 additions & 1 deletion src/loggers/logging.rs
Expand Up @@ -217,7 +217,14 @@ pub fn write_args<W>(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(())
}

Expand Down

0 comments on commit edad110

Please sign in to comment.