Skip to content

Commit f04daf6

Browse files
bors[bot]matklad
andauthored
Merge #8946
8946: Minor: fix comment style r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
2 parents 96e5412 + 7283163 commit f04daf6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

crates/ide/src/inlay_hints.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,10 @@ fn hint_iterator(
225225
}
226226
let iter_trait = famous_defs.core_iter_Iterator()?;
227227
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`.
229230
iter_mod.visibility_of(db, &strukt.into()).filter(|&vis| vis == hir::Visibility::Public)?;
231+
230232
if ty.impls_trait(db, iter_trait, &[]) {
231233
let assoc_type_item = iter_trait.items(db).into_iter().find_map(|item| match item {
232234
hir::AssocItem::TypeAlias(alias) if alias.name(db) == known::Item => Some(alias),

0 commit comments

Comments
 (0)