mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
clippy
This commit is contained in:
parent
7af401dd98
commit
5dab46fa60
1 changed files with 4 additions and 9 deletions
|
@ -2198,16 +2198,11 @@ fn update<'a>(
|
||||||
let undefined_shorthands: Vec<_> = header
|
let undefined_shorthands: Vec<_> = header
|
||||||
.package_qualified_imported_modules
|
.package_qualified_imported_modules
|
||||||
.iter()
|
.iter()
|
||||||
.filter_map(|pqim| match pqim {
|
.filter(|pqim| match pqim {
|
||||||
PackageQualified::Unqualified(_) => None,
|
PackageQualified::Unqualified(_) => false,
|
||||||
PackageQualified::Qualified(shorthand, _) => {
|
PackageQualified::Qualified(shorthand, _) => {
|
||||||
if header.packages.contains_key(shorthand)
|
!(header.packages.contains_key(shorthand)
|
||||||
|| shorthand == &config_shorthand
|
|| shorthand == &config_shorthand)
|
||||||
{
|
|
||||||
None
|
|
||||||
} else {
|
|
||||||
Some(pqim)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect();
|
.collect();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue