rust silence warning for unused method code example Example: ignore #[warn(dead_code)] #[allow(dead_code)] fn dead() {}