Skip to content

Commit

Permalink
Merge pull request #32 from Crazytieguy:debug-non-exhaustive
Browse files Browse the repository at this point in the history
debug non exhaustive where appropriate
  • Loading branch information
Crazytieguy authored Sep 14, 2024
2 parents ce435be + a652ee6 commit 6a7cddd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/adapters/filter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl<I, P> Filter<I, P> {

impl<I: fmt::Debug, P> fmt::Debug for Filter<I, P> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Filter").field("iter", &self.iter).finish()
f.debug_struct("Filter").field("iter", &self.iter).finish_non_exhaustive()
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/filter_map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl<I: fmt::Debug, F> fmt::Debug for FilterMap<I, F> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FilterMap")
.field("iter", &self.iter)
.finish()
.finish_non_exhaustive()
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ impl<I, F> Map<I, F> {

impl<I: fmt::Debug, F> fmt::Debug for Map<I, F> {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("Map").field("iter", &self.iter).finish()
f.debug_struct("Map").field("iter", &self.iter).finish_non_exhaustive()
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/adapters/take_while.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ impl<I: fmt::Debug, P> fmt::Debug for TakeWhile<I, P> {
f.debug_struct("TakeWhile")
.field("iter", &self.iter)
.field("done", &self.done)
.finish()
.finish_non_exhaustive()
}
}

Expand Down

0 comments on commit 6a7cddd

Please sign in to comment.