![]() # Objective Derived `TypePath` impls have a `const _` block in order to hold a `use alloc::string::ToString` import. But that import is useless. Avoiding it helps with https://github.com/bevyengine/bevy/issues/19873. ## Solution Remove the `use` and `const _`. ## Testing I used cargo expand to confirm the `const _ ` is no longer produced. `-Zmacro-stats` output tells me this reduces the size of the `Reflect` code produced for `bevy_ui` from 1_880_486 bytes to 1_859_634 bytes, a 1.1% drop. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT |