mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Improve style
This commit is contained in:
parent
c521668d4c
commit
ae122a0aea
1 changed files with 2 additions and 2 deletions
|
@ -2013,7 +2013,7 @@ fn extend_header_with_builtin(header: &mut ModuleHeader, module: ModuleId) {
|
||||||
header.imported_modules.insert(module, Region::zero());
|
header.imported_modules.insert(module, Region::zero());
|
||||||
|
|
||||||
let types = Symbol::builtin_types_in_scope(module)
|
let types = Symbol::builtin_types_in_scope(module)
|
||||||
.into_iter()
|
.iter()
|
||||||
.map(|(name, info)| (Ident::from(*name), *info));
|
.map(|(name, info)| (Ident::from(*name), *info));
|
||||||
header.exposed_imports.extend(types);
|
header.exposed_imports.extend(types);
|
||||||
}
|
}
|
||||||
|
@ -2126,7 +2126,7 @@ fn update<'a>(
|
||||||
extend_header_with_builtin(&mut header, ModuleId::NUM);
|
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);
|
extend_header_with_builtin(&mut header, ModuleId::BOOL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue