mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +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
|
@ -2237,7 +2237,7 @@ fn update<'a>(
|
|||
// If we're building an app module, and this was the platform
|
||||
// specified in its header's `to` field, record it as our platform.
|
||||
if state.opt_platform_shorthand == Some(config_shorthand) {
|
||||
debug_assert!(matches!(state.platform_data, None));
|
||||
debug_assert!(state.platform_data.is_none());
|
||||
|
||||
state.platform_data = Some(PlatformData {
|
||||
module_id: header.module_id,
|
||||
|
|
|
@ -70,7 +70,7 @@ impl MakeSpecializationsDependents {
|
|||
"already added successors for module '{module_id:?}'"
|
||||
);
|
||||
|
||||
entry.succ.extend(succ.into_iter());
|
||||
entry.succ.extend(succ);
|
||||
|
||||
// The module for derives implicitly depends on every other module
|
||||
entry.succ.insert(ModuleId::DERIVED_GEN);
|
||||
|
@ -334,13 +334,13 @@ impl<'a> Dependencies<'a> {
|
|||
let entry = self
|
||||
.waiting_for
|
||||
.entry(next_step.clone())
|
||||
.or_insert_with(Default::default);
|
||||
.or_default();
|
||||
|
||||
entry.insert(job.clone());
|
||||
}
|
||||
|
||||
{
|
||||
let entry = self.notifies.entry(job).or_insert_with(Default::default);
|
||||
let entry = self.notifies.entry(job).or_default();
|
||||
|
||||
entry.insert(next_step);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue