Skip to content

Commit bce71ca

Browse files
authored
Rollup merge of #149790 - JonathanBrouwer:attr-path-perf, r=jdonszelmann
Remove `Span` from segments of `AttrPath` r? jdonszelmann
2 parents bd7dc77 + f5ce3bc commit bce71ca

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/attr.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,8 @@ impl Rewrite for ast::Attribute {
336336
rewrite_doc_comment(snippet, shape.comment(context.config), context.config)
337337
} else {
338338
let should_skip = self
339-
.ident()
340-
.map(|s| context.skip_context.attributes.skip(s.name.as_str()))
339+
.name()
340+
.map(|s| context.skip_context.attributes.skip(s.as_str()))
341341
.unwrap_or(false);
342342
let prefix = attr_prefix(self);
343343

0 commit comments

Comments
 (0)