mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +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
|
||||
.package_qualified_imported_modules
|
||||
.iter()
|
||||
.filter_map(|pqim| match pqim {
|
||||
PackageQualified::Unqualified(_) => None,
|
||||
.filter(|pqim| match pqim {
|
||||
PackageQualified::Unqualified(_) => false,
|
||||
PackageQualified::Qualified(shorthand, _) => {
|
||||
if header.packages.contains_key(shorthand)
|
||||
|| shorthand == &config_shorthand
|
||||
{
|
||||
None
|
||||
} else {
|
||||
Some(pqim)
|
||||
}
|
||||
!(header.packages.contains_key(shorthand)
|
||||
|| shorthand == &config_shorthand)
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue