Closed
Description
What it does
Flag use of functions with underscore-prefixed names. See #13256
Advantage
Same as the existing used_underscore_binding
lint.
Drawbacks
No response
Example
fn _foo() {
println!("Foo");
}
fn main() {
_foo();
}
Could be written as:
fn foo_() {
println!("Foo");
}
fn main() {
foo_();
}