bevy/crates/bevy_tasks/src
Nicola Papale 41a35ff3d4
Fix clippy lint in single_threaded_task_pool (#9851)
# 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
2023-09-19 21:45:40 +00:00
..
iter small and mostly pointless refactoring (#2934) 2022-02-13 22:33:55 +00:00
lib.rs opt-out multi-threaded feature flag (#9269) 2023-08-03 07:47:09 +00:00
single_threaded_task_pool.rs Fix clippy lint in single_threaded_task_pool (#9851) 2023-09-19 21:45:40 +00:00
slice.rs Document bevy_tasks and enable #![warn(missing_docs)] (#3509) 2022-01-16 04:53:22 +00:00
task_pool.rs elaborate on TaskPool and bevy tasks (#8750) 2023-08-11 21:07:28 +00:00
task.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
thread_executor.rs fix clippy::default_constructed_unit_structs and trybuild errors (#9144) 2023-07-13 22:23:04 +00:00
usages.rs elaborate on TaskPool and bevy tasks (#8750) 2023-08-11 21:07:28 +00:00