Rust tips is a user on octodon.social. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
Rust tips @rust

You can disable some warnings conditionally, e.g. stop from complaining about unfinished code, but only in dev mode:

#![cfg_attr(debug_assertions, allow(dead_code))]
#![cfg_attr(debug_assertions, allow(unused_mut))]
#![cfg_attr(debug_assertions, allow(unused_variables))]
#![cfg_attr(debug_assertions, allow(unused_imports))]
#![cfg_attr(debug_assertions, allow(unused_parens))]

cfg_attr works with any config variable, such as feature flags, target OSes, and test builds.

· Web · 1 · 5