mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
clippy
This commit is contained in:
parent
6c26d8812f
commit
bba8d40813
1 changed files with 6 additions and 3 deletions
|
@ -4347,9 +4347,12 @@ fn canonicalize_and_constrain<'a>(
|
|||
// do nothing
|
||||
}
|
||||
Vacant(vacant) => {
|
||||
if name == Symbol::DICT_DICT || name == Symbol::SET_SET {
|
||||
vacant.insert((false, alias));
|
||||
} else if !name.is_builtin() || name.module_id() == ModuleId::ENCODE {
|
||||
let should_include_builtin = matches!(
|
||||
name.module_id(),
|
||||
ModuleId::ENCODE | ModuleId::DICT | ModuleId::SET
|
||||
);
|
||||
|
||||
if !name.is_builtin() || should_include_builtin {
|
||||
vacant.insert((false, alias));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue