mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 20:53:37 +00:00
Use utils::inner_attributes
This commit is contained in:
parent
955b25625d
commit
f9ee060eae
@ -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…
Reference in New Issue
Block a user