Skip to content

Fix temporaries in bevy-0.17 branch#819

Merged
Jondolf merged 1 commit into
avianphysics:bevy-0.17from
ChristopherBiscardi:bevy-0.17-temporaries
Sep 21, 2025
Merged

Fix temporaries in bevy-0.17 branch#819
Jondolf merged 1 commit into
avianphysics:bevy-0.17from
ChristopherBiscardi:bevy-0.17-temporaries

Conversation

@ChristopherBiscardi

Copy link
Copy Markdown

fix "temporaries freed while still in use" across a couple of function uses.

Solution

I took the approach of keeping the clones of things like DebugName from the .name function, etc and instead stored the value so it could be referenced, since the usage relies on deref coercion to go from DebugName to &str.

The examples run after this fix

@ChristopherBiscardi ChristopherBiscardi changed the title Update to Bevy 0.17 Fix temporaries in bevy-0.17 branch Sep 19, 2025

@Jondolf Jondolf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Jondolf Jondolf merged commit c25ab66 into avianphysics:bevy-0.17 Sep 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants