Skip to content

Commit f9ee060

Browse files
committed
Use utils::inner_attributes
1 parent 955b256 commit f9ee060

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/visitor.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,8 @@ impl<'a> FmtVisitor<'a> {
136136
if let Some(first_stmt) = b.stmts.first() {
137137
let attr_lo = inner_attrs
138138
.and_then(|attrs| {
139-
attrs
140-
.iter()
141-
.filter(|a| a.style == ast::AttrStyle::Inner)
142-
.nth(0)
139+
utils::inner_attributes(attrs)
140+
.first()
143141
.map(|attr| attr.span.lo)
144142
})
145143
.or_else(|| {

0 commit comments

Comments
 (0)