bevy/crates/bevy_tasks/src
Giacomo Stevanato 0fa14c86de
Fix wrong transmuted type in TaskPool::scope_with_executor_inner (#11455)
# Objective

#8219 changed the target type of a `transmute` without changing the one
transmuting from ([see the relevant
diff](55e9ab7c92 (diff-11413fb2eeba97978379d325353d32aa76eefd0af0c8e9b50b7f394ddfda7a26R351-R355))),
making them incompatible. This PR fixes this by changing the initial
type to match the target one (modulo lifetimes).

## Solution

Change the type to be transmuted from to match the one transmuting into
(modulo lifetimes)
2024-01-21 18:08:45 +00:00
..
iter Remove unnecessary path prefixes (#10749) 2023-11-28 23:43:40 +00:00
lib.rs Re-export futures_lite in bevy_tasks (#10670) 2023-11-21 16:51:13 +00:00
single_threaded_task_pool.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
slice.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
task_pool.rs Fix wrong transmuted type in TaskPool::scope_with_executor_inner (#11455) 2024-01-21 18:08:45 +00:00
task.rs Improve doc formatting. (#9840) 2023-09-18 19:43:56 +00:00
thread_executor.rs Replace or document ignored doctests (#11040) 2024-01-01 16:50:56 +00:00
usages.rs Global TaskPool API improvements (#10008) 2023-10-23 20:48:48 +00:00