From a3d49c610cd77139cb180350cea5cf68abcc188d Mon Sep 17 00:00:00 2001 From: Afonso Lage Date: Mon, 19 Sep 2022 16:36:37 +0000 Subject: [PATCH] Implement `Debug` for dynamic types (#5948) # Objective When trying derive `Debug` for type that has `DynamicEnum` it wasn't possible, since neither of `DynamicEnum`, `DynamicTuple`, `DynamicVariant` or `DynamicArray` implements `Debug`. ## Solution Implement Debug for those types, using `derive` macro --- ## Changelog - `DynamicEnum`, `DynamicTuple`, `DynamicVariant` and `DynamicArray` now implements `Debug` --- crates/bevy_reflect/src/array.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/bevy_reflect/src/array.rs b/crates/bevy_reflect/src/array.rs index 495f83d8cb5eb..e8bdff2ad3b9a 100644 --- a/crates/bevy_reflect/src/array.rs +++ b/crates/bevy_reflect/src/array.rs @@ -117,6 +117,7 @@ impl ArrayInfo { /// can be mutated— just that the _number_ of items cannot change. /// /// [`DynamicList`]: crate::DynamicList +#[derive(Debug)] pub struct DynamicArray { pub(crate) name: String, pub(crate) values: Box<[Box]>,