Suppress warning for unused code in practice code
⚓ Rust 📅 2025-11-16 👤 surdeus 👁️ 7I am a beginner and I write a lot of tutorial code samples for practice in main.rs or other places.
I don't delete them because they are good for reference.
How do i suppress warnings for unused code (variables, functions etc.) when running cargo check.
I want to set this in the environment or setup files.
3 posts - 2 participants
🏷️ Rust_feed