Skip to content

Commit

Permalink
ecs: impl Debug for Mut<...>
Browse files Browse the repository at this point in the history
  • Loading branch information
multun committed Aug 16, 2020
1 parent 95dce3a commit 8472789
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/bevy_ecs/hecs/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,12 @@ impl<'a, T: Component> DerefMut for Mut<'a, T> {
}
}

impl<'a, T: Component + core::fmt::Debug> core::fmt::Debug for Mut<'a, T> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.value.fmt(f)
}
}

impl<'a, T: Component> Query for Mut<'a, T> {
type Fetch = FetchMut<T>;
}
Expand Down

0 comments on commit 8472789

Please sign in to comment.