mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
Use a pattern match over an inline let
This commit is contained in:
parent
e857a91b1b
commit
e2137cc310
1 changed files with 1 additions and 4 deletions
|
@ -4308,10 +4308,7 @@ fn build_header<'a>(
|
|||
|
||||
let package_entries = packages
|
||||
.iter()
|
||||
.map(|pkg| {
|
||||
let pkg = pkg.value;
|
||||
(pkg.shorthand, pkg.package_name.value)
|
||||
})
|
||||
.map(|Loc { value: pkg, .. }| (pkg.shorthand, pkg.package_name.value))
|
||||
.collect::<MutMap<_, _>>();
|
||||
|
||||
// Send the deps to the coordinator thread for processing,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue