Skip to content

Commit 2890913

Browse files
committed
add span to struct pattern rest (..)
1 parent b63507d commit 2890913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterns.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ impl Rewrite for Pat {
303303
qself,
304304
path,
305305
fields,
306-
rest == ast::PatFieldsRest::Rest,
306+
matches!(rest, ast::PatFieldsRest::Rest(_)),
307307
self.span,
308308
context,
309309
shape,

0 commit comments

Comments
 (0)