Skip to content

mock-machine compiler warnings #1371

@ninelore

Description

@ninelore
warning: unused import: `PidAutoTuneState`
 --> machines/src/extruder1/mock/mock_emit.rs:4:55
  |
4 |         ExtruderV2Events, LiveValuesEvent, ModeState, PidAutoTuneState, PidSettings, StateEvent,
  |                                                       ^^^^^^^^^^^^^^^^
  |
  = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default

warning: unused import: `PidAutoTuneState`
 --> machines/src/extruder2/mock/mock_emit.rs:4:55
  |
4 |         ExtruderV2Events, LiveValuesEvent, ModeState, PidAutoTuneState, PidSettings, StateEvent,
  |                                                       ^^^^^^^^^^^^^^^^

warning: field `mode` is never read
  --> machines/src/extruder1/mock/mod.rs:63:5
   |
53 | pub struct ExtruderV2 {
   |            ---------- field in this struct
...
63 |     mode: ExtruderV2Mode,
   |     ^^^^
   |
   = note: `ExtruderV2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default

warning: field `mode` is never read
  --> machines/src/extruder2/mock/mod.rs:63:5
   |
53 | pub struct ExtruderV2 {
   |            ---------- field in this struct
...
63 |     mode: ExtruderV2Mode,
   |     ^^^^
   |
   = note: `ExtruderV2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: field `progress_last_check` is never read
  --> machines/src/winder2/mod.rs:61:5
   |
59 | pub struct SpoolAutomaticAction {
   |            -------------------- field in this struct
60 |     pub progress: Length,
61 |     progress_last_check: Instant,
   |     ^^^^^^^^^^^^^^^^^^^
   |
   = note: `SpoolAutomaticAction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: fields `connected_machines` and `max_connected_machines` are never read
  --> machines/src/winder2/mock/mod.rs:45:5
   |
19 | pub struct Winder2 {
   |            ------- fields in this struct
...
45 |     connected_machines: Vec<MachineConnection>,
   |     ^^^^^^^^^^^^^^^^^^
46 |     /// Defaults to limit of 2
47 |     max_connected_machines: usize,
   |     ^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: `Winder2` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis

warning: method `set_traverse_mode` is never used
   --> machines/src/winder2/mock/mock_emit.rs:115:8
    |
 15 | impl Winder2 {
    | ------------ method in this implementation
...
115 |     fn set_traverse_mode(&mut self, _mode: &Winder2Mode) {
    |        ^^^^^^^^^^^^^^^^^

warning: `machines` (lib) generated 7 warnings (run `cargo fix --lib -p machines` to apply 2 suggestions)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Low-PrioLow-Prio Issues can be left unattended for a while.c/server

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions