Skip to content

Commit b786f98

Browse files
HmikihiroVeykril
andcommitted
Update crates/hir-expand/src/attrs.rs
Co-authored-by: Lukas Wirth <lukastw97@gmail.com>
1 parent 9f6b425 commit b786f98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/hir-expand/src/attrs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ pub fn collect_attrs(
460460
owner: &dyn ast::HasAttrs,
461461
) -> impl Iterator<Item = (AttrId, Either<ast::Attr, ast::Comment>)> {
462462
let inner_attrs =
463-
inner_attributes(owner.syntax()).into_iter().flatten().map(|attr| (attr, true));
463+
inner_attributes(owner.syntax()).into_iter().flatten().zip(iter::repeat(true));
464464
let outer_attrs = ast::AttrDocCommentIter::from_syntax_node(owner.syntax())
465465
.filter(|el| match el {
466466
Either::Left(attr) => attr.kind().is_outer(),

0 commit comments

Comments
 (0)