Skip to content

Commit

Permalink
Revert "feat: implement IntoIter for owned body"
Browse files Browse the repository at this point in the history
An iterator that consumes Body needs to hold on to its arena, see
discussion in #6.

This reverts commit 8b82c43.
  • Loading branch information
hillu committed Nov 22, 2024
1 parent dbc7220 commit 9ee6aba
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/body.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,11 +188,3 @@ impl<'a> IntoIterator for &'a Body<'a> {
self.elems.iter()
}
}

impl<'a> IntoIterator for Body<'a> {
type Item = (Key, Value<'a>);
type IntoIter = std::vec::IntoIter<(Key, Value<'a>)>;
fn into_iter(self) -> Self::IntoIter {
self.elems.into_iter()
}
}

0 comments on commit 9ee6aba

Please sign in to comment.