FYI this comes from the rust compiler (rustc) which is called by cargo. You can use #[allow(dead_code)] in the code. This is called an attribute https://doc.rust-lang.org/book/attributes.html.
Benjamin Z
@benjyz
thanks. equally I try to ignore other warnings with
warning: unused import, #[warn(unused_imports)] on by default
with this.. doesn't work "#![warn(unused_imports)]"
Thomas Koehler
@Bastacyclop
#[warn(stuff)] means you want a warning#[allow(stuff)] means you don't want anything#[deny(stuff)] means you want an error
if your code is well organised and you take care of what you do with memory it is not so frequent to leak in C++. The worse is when it comes from implicit and sneaky features.
but I have no "industrial" experience
I find C to be much more appealing to debug
(your format! indentation is not right)
Alexander Chepurnoy
@kushti
@Bastacyclop i dunno much about nowadays, but 10-12 years ago huge C++ projects in our company usually got a garbage collector at some point, sometimes implemented in-house. It is better to use state-of-art Java GCs then