Skip to content

chore: prepare tracing-journald 0.3.1 #5498

chore: prepare tracing-journald 0.3.1

chore: prepare tracing-journald 0.3.1 #5498

GitHub Actions / clippy failed Nov 29, 2024 in 0s

clippy

14 errors

Details

Results

Message level Amount
Internal compiler error 0
Error 14
Warning 0
Note 0
Help 0

Versions

  • rustc 1.83.0 (90b35a623 2024-11-26)
  • cargo 1.83.0 (5ffbef321 2024-10-29)
  • clippy 0.1.83 (90b35a6 2024-11-26)

Annotations

Check failure on line 445 in tracing-core/src/metadata.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/metadata.rs:445:6
    |
445 | impl<'a> PartialEq for Metadata<'a> {
    |      ^^                         ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
445 - impl<'a> PartialEq for Metadata<'a> {
445 + impl PartialEq for Metadata<'_> {
    |

Check failure on line 443 in tracing-core/src/metadata.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/metadata.rs:443:6
    |
443 | impl<'a> Eq for Metadata<'a> {}
    |      ^^                  ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
443 - impl<'a> Eq for Metadata<'a> {}
443 + impl Eq for Metadata<'_> {}
    |

Check failure on line 335 in tracing-core/src/metadata.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/metadata.rs:335:6
    |
335 | impl<'a> fmt::Debug for Metadata<'a> {
    |      ^^                          ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
335 - impl<'a> fmt::Debug for Metadata<'a> {
335 + impl fmt::Debug for Metadata<'_> {
    |

Check failure on line 194 in tracing-core/src/metadata.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

empty line after doc comment

error: empty line after doc comment
   --> tracing-core/src/metadata.rs:193:1
    |
193 | / ///     }
194 | |
    | |_
...
221 |   pub struct Level(LevelInner);
    |   ---------------- the comment documents this struct
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_line_after_doc_comments
    = note: `-D clippy::empty-line-after-doc-comments` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::empty_line_after_doc_comments)]`
    = help: if the empty line is unintentional remove it
help: if the documentation should include the empty line include it in the comment
    |
194 | ///
    |

Check failure on line 1096 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
    --> tracing-core/src/field.rs:1096:6
     |
1096 | impl<'a> fmt::Display for ValueSet<'a> {
     |      ^^                            ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
1096 - impl<'a> fmt::Display for ValueSet<'a> {
1096 + impl fmt::Display for ValueSet<'_> {
     |

Check failure on line 1081 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
    --> tracing-core/src/field.rs:1081:6
     |
1081 | impl<'a> fmt::Debug for ValueSet<'a> {
     |      ^^                          ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
1081 - impl<'a> fmt::Debug for ValueSet<'a> {
1081 + impl fmt::Debug for ValueSet<'_> {
     |

Check failure on line 1020 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
    --> tracing-core/src/field.rs:1020:6
     |
1020 | impl<'a> ValueSet<'a> {
     |      ^^           ^^
     |
     = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
     |
1020 - impl<'a> ValueSet<'a> {
1020 + impl ValueSet<'_> {
     |

Check failure on line 941 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/field.rs:941:6
    |
941 | impl<'a> IntoIterator for &'a FieldSet {
    |      ^^                    ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
941 - impl<'a> IntoIterator for &'a FieldSet {
941 + impl IntoIterator for &FieldSet {
    |

Check failure on line 646 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/field.rs:646:6
    |
646 | impl<'a> Value for fmt::Arguments<'a> {
    |      ^^                           ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
646 - impl<'a> Value for fmt::Arguments<'a> {
646 + impl Value for fmt::Arguments<'_> {
    |

Check failure on line 644 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/field.rs:644:6
    |
644 | impl<'a> crate::sealed::Sealed for fmt::Arguments<'a> {}
    |      ^^                                           ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
644 - impl<'a> crate::sealed::Sealed for fmt::Arguments<'a> {}
644 + impl crate::sealed::Sealed for fmt::Arguments<'_> {}
    |

Check failure on line 416 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a, 'b

error: the following explicit lifetimes could be elided: 'a, 'b
   --> tracing-core/src/field.rs:416:6
    |
416 | impl<'a, 'b> Visit for fmt::DebugMap<'a, 'b> {
    |      ^^  ^^                          ^^  ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
416 - impl<'a, 'b> Visit for fmt::DebugMap<'a, 'b> {
416 + impl Visit for fmt::DebugMap<'_, '_> {
    |

Check failure on line 410 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a, 'b

error: the following explicit lifetimes could be elided: 'a, 'b
   --> tracing-core/src/field.rs:410:6
    |
410 | impl<'a, 'b> Visit for fmt::DebugStruct<'a, 'b> {
    |      ^^  ^^                             ^^  ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
410 - impl<'a, 'b> Visit for fmt::DebugStruct<'a, 'b> {
410 + impl Visit for fmt::DebugStruct<'_, '_> {
    |

Check failure on line 390 in tracing-core/src/field.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/field.rs:390:6
    |
390 | impl<'a> fmt::Debug for HexBytes<'a> {
    |      ^^                          ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
help: elide the lifetimes
    |
390 - impl<'a> fmt::Debug for HexBytes<'a> {
390 + impl fmt::Debug for HexBytes<'_> {
    |

Check failure on line 882 in tracing-core/src/dispatcher.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

the following explicit lifetimes could be elided: 'a

error: the following explicit lifetimes could be elided: 'a
   --> tracing-core/src/dispatcher.rs:882:6
    |
882 | impl<'a> Drop for Entered<'a> {
    |      ^^                   ^^
    |
    = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes
    = note: `-D clippy::needless-lifetimes` implied by `-D warnings`
    = help: to override `-D warnings` add `#[allow(clippy::needless_lifetimes)]`
help: elide the lifetimes
    |
882 - impl<'a> Drop for Entered<'a> {
882 + impl Drop for Entered<'_> {
    |