Revert asset lifetime changes and preserve staticness of asset paths in AssetServer::load()#20562
Merged
alice-i-cecile merged 6 commits intobevyengine:mainfrom Aug 15, 2025
Conversation
Allows creating `AssetSourceId` and `AssetPath` from non-static lifetimes using the `From/Into` implementations over `&str` and `Option<&str>`. Added `as_static` and `from_static` methods to allow a work-around specialization.
…mentations" This reverts commit 5068b6a.
alice-i-cecile
commented
Aug 13, 2025
alice-i-cecile
commented
Aug 13, 2025
atlv24
approved these changes
Aug 13, 2025
james7132
approved these changes
Aug 14, 2025
Member
Author
|
Hmm. Fixing that does not look fun. I'll tackle it tomorrow. |
Member
Author
andriyDev
approved these changes
Aug 15, 2025
Contributor
andriyDev
left a comment
There was a problem hiding this comment.
I think we should fix up the ignored test eventually but I don't think this PR needs to figure that out.
andriyDev
added a commit
to andriyDev/bevy
that referenced
this pull request
Oct 16, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Solution
Into<AssetSourceId>andInto<AssetPath>Implementations over Lifetime #10823TODO
This PR was made > 10k issues ago, and git can do funky things. Opening as a draft to investigate the diff before proceeding.