Do not include body's attributes in arrow_span

This commit is contained in:
topecongiro 2019-04-14 20:13:07 +09:00
parent 0d4fb2403c
commit 3d80678e24

View File

@ -263,7 +263,7 @@ fn rewrite_match_arm(
false,
)?;
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span.lo());
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span().lo());
rewrite_match_body(
context,
&arm.body,