Skip to content

Commit

Permalink
Make Events' fmt::Debug implementation more useful
Browse files Browse the repository at this point in the history
Now that Event has a nice debug output Events can make use of it.
  • Loading branch information
Thomasdezeeuw committed Feb 10, 2020
1 parent d394e2f commit 9ac8bc7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/event/events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ impl<'a> Iterator for Iter<'a> {

impl fmt::Debug for Events {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Events")
.field("capacity", &self.capacity())
.finish()
f.debug_list().entries(self).finish()
}
}

0 comments on commit 9ac8bc7

Please sign in to comment.