ThePerfectComputer / FastWaveBackend

A Rust VCD parser intended to be the backend of a Waveform Viewer(built using egui) that supports dynamically loaded rust plugins.
GNU General Public License v3.0
42 stars 5 forks source link

Warnings from rust nightly #37

Open oscargus opened 10 months ago

oscargus commented 10 months ago

It seems like some additional dead code analysis was introduced in the most recent nightly:

warning: field `0` is never read
  --> FastWaveBackend/src/vcd/reader.rs:12:24
   |
12 | pub(super) struct Line(pub(super) usize);
   |                   ---- ^^^^^^^^^^^^^^^^
   |                   |
   |                   field in this struct
   |
   = note: `Line` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` on by default
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
12 | pub(super) struct Line(());
   |                        ~~
warning: field `0` is never read
  --> FastWaveBackend/src/vcd/utilities.rs:14:16
   |
14 |     OtherValue(char),
   |     ---------- ^^^^
   |     |
   |     field in this variant
   |
help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
   |
14 |     OtherValue(()),
   |                ~~