diff --git a/src/format.rs b/src/format.rs index 8ce291c..8a21e23 100644 --- a/src/format.rs +++ b/src/format.rs @@ -253,7 +253,7 @@ impl Buffers { // Render something when wraparound occurs so the user is aware of it if config.indent_lines { match style { - SpanMode::PreOpen { .. } | SpanMode::Open { .. } => { + SpanMode::PreOpen | SpanMode::Open { .. } => { if indent > 0 && (indent + 1) % config.wraparound == 0 { self.current_buf.push_str(&prefix); for _ in 0..(indent % config.wraparound * config.indent_amount) { @@ -347,7 +347,7 @@ fn indent_block_with_lines( SpanMode::Open { .. } => buf.push_str(LINE_OPEN), SpanMode::Retrace { .. } => buf.push_str(LINE_OPEN), SpanMode::Close { .. } => buf.push_str(LINE_CLOSE), - SpanMode::PreOpen { .. } | SpanMode::PostClose => {} + SpanMode::PreOpen | SpanMode::PostClose => {} SpanMode::Event => {} } } diff --git a/src/lib.rs b/src/lib.rs index 0f63430..a027215 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -339,7 +339,7 @@ where let should_write = match style { SpanMode::Open { .. } | SpanMode::Event => true, // Print the parent of a new span again before entering the child - SpanMode::PreOpen { .. } if self.config.verbose_entry => true, + SpanMode::PreOpen if self.config.verbose_entry => true, SpanMode::Close { verbose } => verbose, // Generated if `span_retrace` is enabled SpanMode::Retrace { .. } => true, diff --git a/src/time.rs b/src/time.rs index 3dc85f8..03664d9 100644 --- a/src/time.rs +++ b/src/time.rs @@ -229,7 +229,7 @@ fn write_style_timestamp( //////////////////////////////////////////////////////////////////////////////////////////////////// -impl<'a, F> FormatTime for &'a F +impl FormatTime for &F where F: FormatTime, {