Change From<&str> to From<&'static str> for Name#24544
Conversation
|
Note that this is a breaking change, so it should be documented in the migration guide. |
Is worth to have both |
|
It looks like your PR is a breaking change, but you didn't provide a migration guide. Please review the instructions for writing migration guides, then expand or revise the content in the migration guides directory to reflect your changes. |
You cannot have both, they conflict with each other. Doing something different when a lifetime is |
Thank you for the explanation, I'll do the migration guide since this is a breaking change. |
Objective
Name::from<&str>always heap-allocates which is a footgun #24465Solution
impl From<&str> for Nametoimpl From<&'static str> for NameTesting
bevy/crates/bevy_animation/src/lib.rs
Lines 1722 to 1762 in 5d5e3f9