aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-05-23 17:51:09 +0100
committerGitHub <[email protected]>2021-05-23 17:51:09 +0100
commitf04daf693aec9f3ffbd98bd368b79646246d506b (patch)
treed7391024e091ece38f279c24abefcf228d5acadf /crates/ide/src
parent96e5412f881608d703df129ed87f3488ad39a9e1 (diff)
parent7283163bb9b4314ec3c7b25fad90ae794e7b7320 (diff)
Merge #8946
8946: Minor: fix comment style r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
Diffstat (limited to 'crates/ide/src')
-rw-r--r--crates/ide/src/inlay_hints.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/crates/ide/src/inlay_hints.rs b/crates/ide/src/inlay_hints.rs
index 960d169f4..8f490e922 100644
--- a/crates/ide/src/inlay_hints.rs
+++ b/crates/ide/src/inlay_hints.rs
@@ -225,8 +225,10 @@ fn hint_iterator(
225 } 225 }
226 let iter_trait = famous_defs.core_iter_Iterator()?; 226 let iter_trait = famous_defs.core_iter_Iterator()?;
227 let iter_mod = famous_defs.core_iter()?; 227 let iter_mod = famous_defs.core_iter()?;
228 // assert this struct comes from `core::iter` 228
229 // Assert that this struct comes from `core::iter`.
229 iter_mod.visibility_of(db, &strukt.into()).filter(|&vis| vis == hir::Visibility::Public)?; 230 iter_mod.visibility_of(db, &strukt.into()).filter(|&vis| vis == hir::Visibility::Public)?;
231
230 if ty.impls_trait(db, iter_trait, &[]) { 232 if ty.impls_trait(db, iter_trait, &[]) {
231 let assoc_type_item = iter_trait.items(db).into_iter().find_map(|item| match item { 233 let assoc_type_item = iter_trait.items(db).into_iter().find_map(|item| match item {
232 hir::AssocItem::TypeAlias(alias) if alias.name(db) == known::Item => Some(alias), 234 hir::AssocItem::TypeAlias(alias) if alias.name(db) == known::Item => Some(alias),