SIGN IN SIGN UP
bevyengine / bevy UNCLAIMED

A refreshingly simple data-driven game engine built in Rust

0 0 59 Rust

Replace unnecessary `FromTemplate` with `Default + Clone`. (#24440)

# Objective

- Fixes #24416.
- Deriving `Default + Clone` is preferred over deriving `FromTemplate`
when constructing the component doesn't refer to world/spawn context
according to the documents of `FromTemplate`.

## Solution

- I searched across repository, `ScrollbarThumb` is another type that
derives `FromTemplate` while all its fields are `Default + Clone`.
- Replace `FromTemplate` with `Default + Clone` on those types.
H
Helix committed
49c0cf2416d82f3d12fa85a38e0ea71840e140e0
Parent: da6b0e2
Committed by GitHub <noreply@github.com> on 5/28/2026, 7:58:49 PM