Skip to content

Commit

Permalink
Fix missing explicit lifetime name for copy_deferred_lighting_id name (
Browse files Browse the repository at this point in the history
…bevyengine#10128)

# Objective

On nightly there is a warning on a missing lifetime:

```bash
warning: `&` without an explicit lifetime name cannot be used here
```

The details are in rust-lang/rust#115010, but
the bottom line is that in associated constants elided lifetimes are no
longer allowed to be implicitly defined.

This fixes the only place where it is missing.

## Solution

- Add explicit `'static` lifetime
  • Loading branch information
ShadowMitia authored and Ray Redondo committed Jan 9, 2024
1 parent f9fe125 commit eb426f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ impl Plugin for CopyDeferredLightingIdPlugin {
#[derive(Default)]
pub struct CopyDeferredLightingIdNode;
impl CopyDeferredLightingIdNode {
pub const NAME: &str = "copy_deferred_lighting_id";
pub const NAME: &'static str = "copy_deferred_lighting_id";
}

impl ViewNode for CopyDeferredLightingIdNode {
Expand Down

0 comments on commit eb426f8

Please sign in to comment.