mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
clippy
This commit is contained in:
parent
d81544b061
commit
d7449482c3
1 changed files with 3 additions and 7 deletions
|
@ -273,13 +273,9 @@ pub fn canonicalize_module_defs<'a>(
|
|||
// iterator over all builtin symbols
|
||||
for symbol in references.iter() {
|
||||
if symbol.is_builtin() {
|
||||
match builtins::builtin_defs_map(*symbol, var_store) {
|
||||
Some(def) => {
|
||||
declarations.push(Declaration::Builtin(def));
|
||||
}
|
||||
None => {
|
||||
// this can be the case for builtin types
|
||||
}
|
||||
// this can fail when the symbol is for builtin types, or has no implementation yet
|
||||
if let Some(def) = builtins::builtin_defs_map(*symbol, var_store) {
|
||||
declarations.push(Declaration::Builtin(def));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue