From ae122a0aeafdbb11700449d34ede7219e6236216 Mon Sep 17 00:00:00 2001 From: Ayaz Hafiz Date: Wed, 21 Sep 2022 12:19:50 -0500 Subject: [PATCH] Improve style --- crates/compiler/load_internal/src/file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/compiler/load_internal/src/file.rs b/crates/compiler/load_internal/src/file.rs index d7a2e6d891..3f4806bad5 100644 --- a/crates/compiler/load_internal/src/file.rs +++ b/crates/compiler/load_internal/src/file.rs @@ -2013,7 +2013,7 @@ fn extend_header_with_builtin(header: &mut ModuleHeader, module: ModuleId) { header.imported_modules.insert(module, Region::zero()); let types = Symbol::builtin_types_in_scope(module) - .into_iter() + .iter() .map(|(name, info)| (Ident::from(*name), *info)); header.exposed_imports.extend(types); } @@ -2126,7 +2126,7 @@ fn update<'a>( extend_header_with_builtin(&mut header, ModuleId::NUM); } - if header.module_id != ModuleId::BOOL { + if ![ModuleId::BOOL].contains(&header.module_id) { extend_header_with_builtin(&mut header, ModuleId::BOOL); }