Use a pattern match over an inline let

This commit is contained in:
Richard Feldman 2022-12-06 16:24:43 -05:00
parent e857a91b1b
commit e2137cc310
No known key found for this signature in database
GPG key ID: F1F21AA5B1D9E43B

View file

@ -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,