Skip to content

Commit

Permalink
FlattenOk: Debug with macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Philippe-Cholet authored and jswrenn committed Jan 23, 2024
1 parent 94452e3 commit 7a1c22b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/flatten_ok.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,13 +147,7 @@ where
T: IntoIterator,
T::IntoIter: fmt::Debug,
{
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
f.debug_struct("FlattenOk")
.field("iter", &self.iter)
.field("inner_front", &self.inner_front)
.field("inner_back", &self.inner_back)
.finish()
}
debug_fmt_fields!(FlattenOk, iter, inner_front, inner_back);
}

/// Only the iterator being flattened needs to implement [`FusedIterator`].
Expand Down

0 comments on commit 7a1c22b

Please sign in to comment.