drop into_iter in some places

This commit is contained in:
Folkert 2023-10-07 15:30:25 +02:00
parent e6a154765c
commit 6ab54c02e2
No known key found for this signature in database
GPG key ID: 1F17F6FFD112B97C
9 changed files with 21 additions and 21 deletions

View file

@ -198,7 +198,7 @@ impl<'a> PartialProcs<'a> {
pub fn drain(self) -> impl Iterator<Item = (Symbol, PartialProc<'a>)> {
debug_assert_eq!(self.symbols.len(), self.partial_procs.len());
self.symbols.into_iter().zip(self.partial_procs.into_iter())
self.symbols.into_iter().zip(self.partial_procs)
}
}
@ -541,7 +541,7 @@ impl<'a> ExternalSpecializations<'a> {
self.storage.into_storage_subs(),
self.symbol_or_lambda
.into_iter()
.zip(self.types_to_specialize.into_iter()),
.zip(self.types_to_specialize),
)
}
@ -656,8 +656,8 @@ impl<'a> Specialized<'a> {
fn into_iter_assert_done(self) -> impl Iterator<Item = (Symbol, ProcLayout<'a>, Proc<'a>)> {
self.symbols
.into_iter()
.zip(self.proc_layouts.into_iter())
.zip(self.procedures.into_iter())
.zip(self.proc_layouts)
.zip(self.procedures)
.filter_map(|((s, l), in_progress)| {
if let Symbol::REMOVED_SPECIALIZATION = s {
None