bevy/crates/bevy_pbr/src
Kristoffer Søholm 73af2b7d29
Cleanup unneeded lifetimes in bevy_asset (#15546)
# Objective

Fixes #15541

A bunch of lifetimes were added during the Assets V2 rework, but after
moving to async traits in #12550 they can be elided. That PR mentions
that this might be the case, but apparently it wasn't followed up on at
the time.

~~I ended up grepping for `<'a` and finding a similar case in
`bevy_reflect` which I also fixed.~~ (edit: that one was needed
apparently)

Note that elided lifetimes are unstable in `impl Trait`. If that gets
stabilized then we can elide even more.

## Solution

Remove the extra lifetimes.

## Testing

Everything still compiles. If I have messed something up there is a
small risk that some user code stops compiling, but all the examples
still work at least.

---

## Migration Guide

The traits `AssetLoader`, `AssetSaver` and `Process` traits from
`bevy_asset` now use elided lifetimes. If you implement these then
remove the named lifetime.
2024-09-30 21:54:59 +00:00
..
cluster The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
deferred Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
light Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
light_probe The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
lightmap Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
meshlet Cleanup unneeded lifetimes in bevy_asset (#15546) 2024-09-30 21:54:59 +00:00
prepass The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
render The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
ssao The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
ssr Rename rendering components for improved consistency and clarity (#15035) 2024-09-10 01:11:46 +00:00
volumetric_fog The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
bundle.rs The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
extended_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
fog.rs Add core and alloc over std Lints (#15281) 2024-09-27 00:59:59 +00:00
lib.rs The Cooler 'Retain Rendering World' (#15320) 2024-09-30 18:51:43 +00:00
material.rs Meshlet screenspace-derived tangents (#15084) 2024-09-29 18:39:25 +00:00
parallax.rs bevy_reflect: FromReflect Ergonomics Implementation (#6056) 2023-06-29 01:31:34 +00:00
pbr_material.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00
wireframe.rs Simpler lint fixes: makes ci lints work but disables a lint for now (#15376) 2024-09-24 11:42:59 +00:00