From cd0a9cb68a515d7b76945c7022e0329bd148d528 Mon Sep 17 00:00:00 2001 From: bytemuck Date: Sat, 6 Jun 2026 11:51:18 -0400 Subject: [PATCH] Change From<&str> to From<&'static str> for Name --- crates/bevy_ecs/src/name.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/bevy_ecs/src/name.rs b/crates/bevy_ecs/src/name.rs index 0c7cfe3e18284..bb2b98d85581a 100644 --- a/crates/bevy_ecs/src/name.rs +++ b/crates/bevy_ecs/src/name.rs @@ -173,10 +173,10 @@ impl<'w, 's> core::fmt::Display for NameOrEntityItem<'w, 's> { // Conversions from strings -impl From<&str> for Name { +impl From<&'static str> for Name { #[inline(always)] - fn from(name: &str) -> Self { - Name::new(name.to_owned()) + fn from(name: &'static str) -> Self { + Name::new(name) } }