Skip to content

Commit

Permalink
Implement Debug for dynamic types (bevyengine#5948)
Browse files Browse the repository at this point in the history
# 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`
  • Loading branch information
afonsolage authored and ItsDoot committed Feb 1, 2023
1 parent 01d2ce8 commit a3d49c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_reflect/src/array.rs
Expand Up @@ -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<dyn Reflect>]>,
Expand Down

0 comments on commit a3d49c6

Please sign in to comment.