We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
The migration guide for 0.15 suggests that a prototypical implementation of AssetLoader now looks like this:
AssetLoader
impl AssetLoader for MyLoader { async fn load<'a>( &'a self, reader: &'a mut dyn bevy::asset::io::Reader, _: &'a Self::Settings, load_context: &'a mut LoadContext<'_>, ) -> Result<Self::Asset, Self::Error> { }
However, this is incorrect: the lifetimes are not constrained in the trait to all be equal. The correct implementation is:
impl AssetLoader for MyLoader { async fn load( &self, reader: &mut dyn bevy::asset::io::Reader, _: &Self::Settings, load_context: &mut LoadContext<'_>, ) -> Result<Self::Asset, Self::Error> { }
The text was updated successfully, but these errors were encountered:
This section needs to be consolidated with https://bevyengine.org/learn/migration-guides/0-14-to-0-15/#cleanup-unneeded-lifetimes-in-bevy-asset
Sorry, something went wrong.
No branches or pull requests
The migration guide for 0.15 suggests that a prototypical implementation of
AssetLoader
now looks like this:However, this is incorrect: the lifetimes are not constrained in the trait to all be equal. The correct implementation is:
The text was updated successfully, but these errors were encountered: