Skip to content

Commit

Permalink
Merge pull request #605 from brunogouveia/hash-map-set-into-iter
Browse files Browse the repository at this point in the history
Added Allocator template argument for rustc_iter
  • Loading branch information
Amanieu authored Jan 7, 2025
2 parents 16044fe + d615baf commit d76a3de
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rustc_entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,15 +550,15 @@ impl<K, V> IterMut<'_, K, V> {
}
}

impl<K, V> IntoIter<K, V> {
impl<K, V, A: Allocator> IntoIter<K, V, A> {
/// Returns a iterator of references over the remaining items.
#[cfg_attr(feature = "inline-more", inline)]
pub fn rustc_iter(&self) -> Iter<'_, K, V> {
self.iter()
}
}

impl<K, V> Drain<'_, K, V> {
impl<K, V, A: Allocator> Drain<'_, K, V, A> {
/// Returns a iterator of references over the remaining items.
#[cfg_attr(feature = "inline-more", inline)]
pub fn rustc_iter(&self) -> Iter<'_, K, V> {
Expand Down

0 comments on commit d76a3de

Please sign in to comment.