From 56eb362327158a7c131a6e9b32f253fa9e6ef437 Mon Sep 17 00:00:00 2001 From: Dimitri Belopopsky Date: Sun, 15 Oct 2023 16:37:53 +0200 Subject: [PATCH] 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 --- crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs b/crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs index cb68e472035cb..5609896045ec8 100644 --- a/crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs +++ b/crates/bevy_core_pipeline/src/deferred/copy_lighting_id.rs @@ -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 {