How can I get the compiler to warn me of unused code that is marked pub?
问题 Rust warns for unused private items: warning: function is never used: `hmm` --> src/example.rs:357:1 | 357 | fn hmm() { | ^^^^^^^^ | = note: #[warn(dead_code)] on by default I have some code marked pub that I know is not being used. How can I get the compiler to warn me of this? This is in the context of a library and a series of binaries, all in the same workspace. The library is only used by those binaries; the library isn't being consumed by anybody else and I'm not going to upload to