mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
match => if let value def
This commit is contained in:
parent
a8a829aadd
commit
b3cd71e460
1 changed files with 2 additions and 5 deletions
|
@ -5180,11 +5180,8 @@ fn parse<'a>(
|
|||
let mut imported: Vec<(QualifiedModuleName, Region)> = vec![];
|
||||
|
||||
for (def, region) in ast::RecursiveValueDefIter::new(&parsed_defs) {
|
||||
match def {
|
||||
ValueDef::ModuleImport(import) => {
|
||||
imported.push((import.name.value.into(), *region));
|
||||
}
|
||||
_ => {}
|
||||
if let ValueDef::ModuleImport(import) = def {
|
||||
imported.push((import.name.value.into(), *region));
|
||||
}
|
||||
}
|
||||
let mut exposed: Vec<Symbol> = Vec::with_capacity(num_exposes);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue