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 james7132 committed Oct 19, 2022
1 parent a65efb9 commit ac6e0d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_reflect/src/array.rs
Original file line number Diff line number Diff line change
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 ac6e0d8

Please sign in to comment.