Skip to content

Several lints do not check against alternative method syntax #94

@BD103

Description

@BD103

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-LinterRelated to the linter and custom lintsC-BugA bug in the program

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions