Module suspicious

Source
Expand description

Lints that checks for suspicious, potentially incorrect code.

Unlike correctness lints, these may have false positives that you need to #[allow(...)].

These lints are warn by default.

Modulesยง

insert_event_resource
Checks for the Events<T> resource being manually inserted with App::init_resource() or App::insert_resource() instead of with App::add_event().
insert_unit_bundle
Checks for calls to Commands::spawn() that inserts unit () as a component.
iter_current_update_events
Checks for calls to Events::<T>::iter_current_update_events().