fix failing clippy checks, remove unnecessary code

This commit is contained in:
Mark Thom
2024-04-25 20:05:22 -06:00
parent be23c74b17
commit 5e1effc69a
4 changed files with 16 additions and 25 deletions

View File

@@ -298,9 +298,11 @@ impl IndexStore {
_ => self
.get_meta_predicate_spec(key.0, key.1, &compilation_target)
.map(|meta_specs| {
meta_specs.iter().find(|meta_spec| match meta_spec {
MetaSpec::Colon | MetaSpec::RequiresExpansionWithArgument(_) => true,
_ => false,
meta_specs.iter().find(|meta_spec| {
matches!(
meta_spec,
MetaSpec::Colon | MetaSpec::RequiresExpansionWithArgument(_)
)
})
})
.map(|meta_spec_opt| meta_spec_opt.is_some())