Skip to content

Commit

Permalink
fix new clippies
Browse files Browse the repository at this point in the history
  • Loading branch information
emabee committed Jun 1, 2024
1 parent b55a868 commit ecd8bb0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/formats.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ pub fn colored_opt_format(
#[cfg(feature = "kv")]
write_key_value_pairs(w, record)?;

write!(w, "{}", style(level).paint(&record.args().to_string()))
write!(w, "{}", style(level).paint(record.args().to_string()))
}

/// A logline-formatter that produces log lines like
Expand Down Expand Up @@ -224,7 +224,7 @@ pub fn colored_detailed_format(
#[cfg(feature = "kv")]
write_key_value_pairs(w, record)?;

write!(w, "{}", style(level).paint(&record.args().to_string()))
write!(w, "{}", style(level).paint(record.args().to_string()))
}

/// A logline-formatter that produces log lines like
Expand Down Expand Up @@ -285,7 +285,7 @@ pub fn colored_with_thread(
#[cfg(feature = "kv")]
write_key_value_pairs(w, record)?;

write!(w, "{}", style(level).paint(&record.args().to_string()))
write!(w, "{}", style(level).paint(record.args().to_string()))
}

/// A logline-formatter that produces log lines in json format.
Expand Down

0 comments on commit ecd8bb0

Please sign in to comment.