From 3e0baa14c4f1bd060171821e51aef58a50f93535 Mon Sep 17 00:00:00 2001 From: Jan Hohenheim Date: Sun, 16 Nov 2025 09:17:13 +0100 Subject: [PATCH] Don't print DebugName spam in duplicate components --- crates/bevy_ecs/src/bundle/info.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/bevy_ecs/src/bundle/info.rs b/crates/bevy_ecs/src/bundle/info.rs index 5d0dbeddf63c8..68f5c4e317964 100644 --- a/crates/bevy_ecs/src/bundle/info.rs +++ b/crates/bevy_ecs/src/bundle/info.rs @@ -1,4 +1,4 @@ -use alloc::{boxed::Box, vec, vec::Vec}; +use alloc::{boxed::Box, string::ToString as _, vec, vec::Vec}; use bevy_platform::{ collections::{HashMap, HashSet}, hash::FixedHasher, @@ -111,7 +111,7 @@ impl BundleInfo { .into_iter() .map(|id| { // SAFETY: the caller ensures component_id is valid. - unsafe { components.get_info_unchecked(id).name() } + unsafe { components.get_info_unchecked(id).name().to_string() } }) .collect::>();