What is the Clippy lint to flag used underscore-prefixed functions? #13256
-
For example: fn _foo() {
println!("Foo");
}
fn main() {
//_foo();
} Using Rust 1.80.1, this code compiles without warnings and passes Clippy without warnings, and continues to do so after uncommenting the call to When the call to (Sorry if this is a silly question, but couldn't find the answer myself searching the list of Clippy lints - closest was https://rust-lang.github.io/rust-clippy/stable/index.html#/used_underscore_binding but seems that's only for use of |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I don't think there currently is a link for that. It could be an extension for the |
Beta Was this translation helpful? Give feedback.
I don't think there currently is a link for that. It could be an extension for the
use_underscore_binding
lint. Even though the lint might have to be renamed or maybe a new lint created (used_underscore_items
)