![]() # Objective `single_threaded_task_pool` emitted a warning: ``` warning: use of `default` to create a unit struct --> crates/bevy_tasks/src/single_threaded_task_pool.rs:22:25 | 22 | Self(PhantomData::default()) | ^^^^^^^^^^^ help: remove this call to `default` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#default_constructed_unit_structs = note: `#[warn(clippy::default_constructed_unit_structs)]` on by default ``` ## Solution fix the lint |
||
---|---|---|
.. | ||
iter | ||
lib.rs | ||
single_threaded_task_pool.rs | ||
slice.rs | ||
task_pool.rs | ||
task.rs | ||
thread_executor.rs | ||
usages.rs |