alphaville / optimization-engine

Nonconvex embedded optimization: code generation for fast real-time optimization + ROS support
https://alphaville.github.io/optimization-engine/
Other
514 stars 53 forks source link

Warning when creating TCP server #341

Closed alphaville closed 1 month ago

alphaville commented 7 months ago

Describe the bug

When compiling a TCP server and when starting it, the following warning is shown

warning: field `0` is never read
  --> src/main.rs:64:10
   |
64 |     Kill(i32),
   |     ---- ^^^
   |     |
   |     field in this variant
   |
   = 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
   |
64 |     Kill(()),
   |          ~~

System information

Default host: x86_64-unknown-linux-gnu
rustup home:  /root/.rustup

stable-x86_64-unknown-linux-gnu (default)
rustc 1.77.0 (aedd173a2 2024-03-17)
rustc 1.77.0 (aedd173a2 2024-03-17)