Rename value field to expr to simplify later commits' diffs
This commit is contained in:
committed by
Jonathan Dönszelmann
parent
a611773d80
commit
53b2c7cc95
@@ -220,9 +220,9 @@ pub fn attrs_to_doc_fragments<'a>(
|
||||
|
||||
fn span_for_value(attr: &ast::Attribute) -> Span {
|
||||
if let ast::AttrKind::Normal(normal) = &attr.kind
|
||||
&& let ast::AttrArgs::Eq { value, .. } = &normal.item.args
|
||||
&& let ast::AttrArgs::Eq { expr, .. } = &normal.item.args
|
||||
{
|
||||
value.span().with_ctxt(attr.span.ctxt())
|
||||
expr.span().with_ctxt(attr.span.ctxt())
|
||||
} else {
|
||||
attr.span
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user