Use utils::inner_attributes
This commit is contained in:
parent
955b25625d
commit
f9ee060eae
1 changed files with 2 additions and 4 deletions
|
|
@ -136,10 +136,8 @@ impl<'a> FmtVisitor<'a> {
|
|||
if let Some(first_stmt) = b.stmts.first() {
|
||||
let attr_lo = inner_attrs
|
||||
.and_then(|attrs| {
|
||||
attrs
|
||||
.iter()
|
||||
.filter(|a| a.style == ast::AttrStyle::Inner)
|
||||
.nth(0)
|
||||
utils::inner_attributes(attrs)
|
||||
.first()
|
||||
.map(|attr| attr.span.lo)
|
||||
})
|
||||
.or_else(|| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue