Skip to content

Commit 3d80678

Browse files
committed
Do not include body's attributes in arrow_span
1 parent 0d4fb24 commit 3d80678

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/matches.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ fn rewrite_match_arm(
263263
false,
264264
)?;
265265

266-
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span.lo());
266+
let arrow_span = mk_sp(arm.pats.last().unwrap().span.hi(), arm.body.span().lo());
267267
rewrite_match_body(
268268
context,
269269
&arm.body,

0 commit comments

Comments
 (0)