Fix missing explicit lifetime name for copy_deferred_lighting_id name (#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 https://github.com/rust-lang/rust/issues/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
This commit is contained in:
Dimitri Belopopsky 2023-10-15 16:37:53 +02:00 committed by GitHub
parent b9ddb37d5b
commit 56eb362327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {