PR #250 #1277
reviewdog [clippy] report
reported by reviewdog 🐶
Findings (1)
rust/ommx/src/qplib/parser.rs|14 col 12| error: fields default_starting_x
, starting_x
, default_starting_y
, starting_y
, default_starting_z
, and starting_z
are never read
--> rust/ommx/src/qplib/parser.rs:40:9
|
14 | pub struct QplibFile {
| --------- fields in this struct
...
40 | pub default_starting_x: f64,
| ^^^^^^^^^^^^^^^^^^
41 | pub starting_x: HashMap<usize, f64>,
| ^^^^^^^^^^
42 | pub default_starting_y: f64,
| ^^^^^^^^^^^^^^^^^^
43 | pub starting_y: HashMap<usize, f64>,
| ^^^^^^^^^^
44 | pub default_starting_z: f64,
| ^^^^^^^^^^^^^^^^^^
45 | pub starting_z: HashMap<usize, f64>,
| ^^^^^^^^^^
|
= note: QplibFile
has a derived impl for the trait Debug
, but this is intentionally ignored during dead code analysis
= note: -D dead-code
implied by -D warnings
= help: to override -D warnings
add #[allow(dead_code)]
Filtered Findings (0)
Annotations
Check failure on line 14 in rust/ommx/src/qplib/parser.rs
github-actions / clippy
[clippy] rust/ommx/src/qplib/parser.rs#L14
error: fields `default_starting_x`, `starting_x`, `default_starting_y`, `starting_y`, `default_starting_z`, and `starting_z` are never read
--> rust/ommx/src/qplib/parser.rs:40:9
|
14 | pub struct QplibFile {
| --------- fields in this struct
...
40 | pub default_starting_x: f64,
| ^^^^^^^^^^^^^^^^^^
41 | pub starting_x: HashMap<usize, f64>,
| ^^^^^^^^^^
42 | pub default_starting_y: f64,
| ^^^^^^^^^^^^^^^^^^
43 | pub starting_y: HashMap<usize, f64>,
| ^^^^^^^^^^
44 | pub default_starting_z: f64,
| ^^^^^^^^^^^^^^^^^^
45 | pub starting_z: HashMap<usize, f64>,
| ^^^^^^^^^^
|
= note: `QplibFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
Raw output
rust/ommx/src/qplib/parser.rs:14:12:e:error: fields `default_starting_x`, `starting_x`, `default_starting_y`, `starting_y`, `default_starting_z`, and `starting_z` are never read
--> rust/ommx/src/qplib/parser.rs:40:9
|
14 | pub struct QplibFile {
| --------- fields in this struct
...
40 | pub default_starting_x: f64,
| ^^^^^^^^^^^^^^^^^^
41 | pub starting_x: HashMap<usize, f64>,
| ^^^^^^^^^^
42 | pub default_starting_y: f64,
| ^^^^^^^^^^^^^^^^^^
43 | pub starting_y: HashMap<usize, f64>,
| ^^^^^^^^^^
44 | pub default_starting_z: f64,
| ^^^^^^^^^^^^^^^^^^
45 | pub starting_z: HashMap<usize, f64>,
| ^^^^^^^^^^
|
= note: `QplibFile` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
= note: `-D dead-code` implied by `-D warnings`
= help: to override `-D warnings` add `#[allow(dead_code)]`
__END__