Skip to content

refactor: Update error messages for more information on how to debug …

Sign in for the full log view
GitHub Actions / clippy failed Sep 6, 2024 in 1s

reviewdog [clippy] report

reported by reviewdog 🐶

Findings (3)

jpegxl-rs/src/decode/session.rs|39 col 12| error: field state is never read
--> jpegxl-rs/src/decode/session.rs:43:5
|
39 | pub struct Session<'dec, 'pr, 'mm> {
| ------- field in this struct
...
43 | state: State,
| ^^^^^
|
= note: -D dead-code implied by -D warnings
= help: to override -D warnings add #[allow(dead_code)]
jpegxl-rs/src/decode/event.rs|34 col 17| error: wildcard matches only a single variant and will also match any future added variants
--> jpegxl-rs/src/decode/event.rs:34:17
|
34 | _ => config,
| ^ help: try: Event::BasicInfo
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
= note: -D clippy::match-wildcard-for-single-variants implied by -D warnings
= help: to override -D warnings add #[allow(clippy::match_wildcard_for_single_variants)]
jpegxl-rs/src/decode/session.rs|23 col 5| error: empty doc comment
--> jpegxl-rs/src/decode/session.rs:23:5
|
23 | ///
| ^^^
|
= help: consider removing or filling it
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
= note: -D clippy::empty-docs implied by -D warnings
= help: to override -D warnings add #[allow(clippy::empty_docs)]

Filtered Findings (0)

Annotations

Check failure on line 39 in jpegxl-rs/src/decode/session.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] jpegxl-rs/src/decode/session.rs#L39

error: field `state` is never read
  --> jpegxl-rs/src/decode/session.rs:43:5
   |
39 | pub struct Session<'dec, 'pr, 'mm> {
   |            ------- field in this struct
...
43 |     state: State,
   |     ^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`
Raw output
jpegxl-rs/src/decode/session.rs:39:12:e:error: field `state` is never read
  --> jpegxl-rs/src/decode/session.rs:43:5
   |
39 | pub struct Session<'dec, 'pr, 'mm> {
   |            ------- field in this struct
...
43 |     state: State,
   |     ^^^^^
   |
   = note: `-D dead-code` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(dead_code)]`


__END__

Check failure on line 34 in jpegxl-rs/src/decode/event.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] jpegxl-rs/src/decode/event.rs#L34

error: wildcard matches only a single variant and will also match any future added variants
  --> jpegxl-rs/src/decode/event.rs:34:17
   |
34 |                 _ => config,
   |                 ^ help: try: `Event::BasicInfo`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
   = note: `-D clippy::match-wildcard-for-single-variants` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::match_wildcard_for_single_variants)]`
Raw output
jpegxl-rs/src/decode/event.rs:34:17:e:error: wildcard matches only a single variant and will also match any future added variants
  --> jpegxl-rs/src/decode/event.rs:34:17
   |
34 |                 _ => config,
   |                 ^ help: try: `Event::BasicInfo`
   |
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#match_wildcard_for_single_variants
   = note: `-D clippy::match-wildcard-for-single-variants` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::match_wildcard_for_single_variants)]`


__END__

Check failure on line 23 in jpegxl-rs/src/decode/session.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

[clippy] jpegxl-rs/src/decode/session.rs#L23

error: empty doc comment
  --> jpegxl-rs/src/decode/session.rs:23:5
   |
23 |     ///
   |     ^^^
   |
   = help: consider removing or filling it
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
   = note: `-D clippy::empty-docs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::empty_docs)]`
Raw output
jpegxl-rs/src/decode/session.rs:23:5:e:error: empty doc comment
  --> jpegxl-rs/src/decode/session.rs:23:5
   |
23 |     ///
   |     ^^^
   |
   = help: consider removing or filling it
   = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#empty_docs
   = note: `-D clippy::empty-docs` implied by `-D warnings`
   = help: to override `-D warnings` add `#[allow(clippy::empty_docs)]`


__END__