Skip to content

Commit a3d49c6

Browse files
afonsolageItsDoot
authored andcommitted
Implement Debug for dynamic types (bevyengine#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`
1 parent 01d2ce8 commit a3d49c6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/bevy_reflect/src/array.rs

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ impl ArrayInfo {
117117
/// can be mutated— just that the _number_ of items cannot change.
118118
///
119119
/// [`DynamicList`]: crate::DynamicList
120+
#[derive(Debug)]
120121
pub struct DynamicArray {
121122
pub(crate) name: String,
122123
pub(crate) values: Box<[Box<dyn Reflect>]>,

0 commit comments

Comments
 (0)