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

@ -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,

View file

@ -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);
}