Skip to content

Commit

Permalink
style: Address warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed May 2, 2024
1 parent 664c2fa commit b4057d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@ impl Builder {
/// The default format uses a space to separate each key-value pair, with an "=" between
/// the key and value.
#[cfg(feature = "unstable-kv")]
pub fn format_key_values<F: 'static>(&mut self, format: F) -> &mut Self
pub fn format_key_values<F>(&mut self, format: F) -> &mut Self
where
F: Fn(&mut Formatter, &dyn log::kv::Source) -> io::Result<()> + Sync + Send,
F: Fn(&mut Formatter, &dyn log::kv::Source) -> io::Result<()> + Sync + Send + 'static,
{
self.format.kv_format = Some(Box::new(format));
self
Expand Down

0 comments on commit b4057d3

Please sign in to comment.