The following code does not raise any warnings:
#[derive(Event)]
struct MyEvent;
fn main() {
let mut app = App::new();
App::init_resource::<Events<MyEvent>>(&mut app);
App::run(&mut app);
}
This is likely because both lints match against just ExprKind::MethodCall, when they should also be looking for normal function calls.
Not sure if this bug will come up often, so this is probably low-priority.
The following code does not raise any warnings:
This is likely because both lints match against just
ExprKind::MethodCall, when they should also be looking for normal function calls.Not sure if this bug will come up often, so this is probably low-priority.