Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/diagnostics/decl_check.rs')
-rw-r--r--crates/hir-ty/src/diagnostics/decl_check.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/hir-ty/src/diagnostics/decl_check.rs b/crates/hir-ty/src/diagnostics/decl_check.rs
index 40fe3073cf..0815e62f87 100644
--- a/crates/hir-ty/src/diagnostics/decl_check.rs
+++ b/crates/hir-ty/src/diagnostics/decl_check.rs
@@ -657,10 +657,10 @@ impl<'a> DeclValidator<'a> {
}
fn is_trait_impl_container(&self, container_id: ItemContainerId) -> bool {
- if let ItemContainerId::ImplId(impl_id) = container_id {
- if self.db.impl_trait(impl_id).is_some() {
- return true;
- }
+ if let ItemContainerId::ImplId(impl_id) = container_id
+ && self.db.impl_trait(impl_id).is_some()
+ {
+ return true;
}
false
}