Use utils::inner_attributes

This commit is contained in:
sinkuu 2017-08-12 17:01:46 +09:00
parent 955b25625d
commit f9ee060eae

View File

@ -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(|| {