optimization-engine icon indicating copy to clipboard operation
optimization-engine copied to clipboard

Warning when creating TCP server

Open alphaville opened this issue 1 year ago • 0 comments

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

  • System/Platform: Jupyter notebook running on docker image alphaville/open:0.5.0
  • OS: Debian
  • What is the output of rustup show?
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)
  • What is the output of rustc -V?
rustc 1.77.0 (aedd173a2 2024-03-17)
  • Python/MATLAB version if relevant: Python 3.11.2

alphaville avatar Mar 26 '24 12:03 alphaville