mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
drop into_iter in some places
This commit is contained in:
parent
e6a154765c
commit
6ab54c02e2
9 changed files with 21 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue