Skip to content

Commit

Permalink
fix debug output for Vec
Browse files Browse the repository at this point in the history
  • Loading branch information
chanced authored Sep 22, 2024
1 parent ac859b8 commit 2ba6449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ impl<T: Clone> Clone for Vec<T> {

impl<T: fmt::Debug> fmt::Debug for Vec<T> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_list().entries(self.iter()).finish()
f.debug_list().entries(self.iter().map(|(_, v)| v)).finish()
}
}

Expand Down

0 comments on commit 2ba6449

Please sign in to comment.