Skip to content

Commit 021e78e

Browse files
authored
Merge pull request #90 from seyyed-dev/clippy
fix clippy errors
2 parents f814c58 + 763e08e commit 021e78e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/format.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ impl Buffers {
253253
// Render something when wraparound occurs so the user is aware of it
254254
if config.indent_lines {
255255
match style {
256-
SpanMode::PreOpen { .. } | SpanMode::Open { .. } => {
256+
SpanMode::PreOpen | SpanMode::Open { .. } => {
257257
if indent > 0 && (indent + 1) % config.wraparound == 0 {
258258
self.current_buf.push_str(&prefix);
259259
for _ in 0..(indent % config.wraparound * config.indent_amount) {
@@ -347,7 +347,7 @@ fn indent_block_with_lines(
347347
SpanMode::Open { .. } => buf.push_str(LINE_OPEN),
348348
SpanMode::Retrace { .. } => buf.push_str(LINE_OPEN),
349349
SpanMode::Close { .. } => buf.push_str(LINE_CLOSE),
350-
SpanMode::PreOpen { .. } | SpanMode::PostClose => {}
350+
SpanMode::PreOpen | SpanMode::PostClose => {}
351351
SpanMode::Event => {}
352352
}
353353
}

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ where
339339
let should_write = match style {
340340
SpanMode::Open { .. } | SpanMode::Event => true,
341341
// Print the parent of a new span again before entering the child
342-
SpanMode::PreOpen { .. } if self.config.verbose_entry => true,
342+
SpanMode::PreOpen if self.config.verbose_entry => true,
343343
SpanMode::Close { verbose } => verbose,
344344
// Generated if `span_retrace` is enabled
345345
SpanMode::Retrace { .. } => true,

src/time.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ fn write_style_timestamp(
229229

230230
////////////////////////////////////////////////////////////////////////////////////////////////////
231231

232-
impl<'a, F> FormatTime for &'a F
232+
impl<F> FormatTime for &F
233233
where
234234
F: FormatTime,
235235
{

0 commit comments

Comments
 (0)