Skip to content

Commit 2f81933

Browse files
committed
Temporarily replace RangeEnd::Included with _
1 parent e8d3a22 commit 2f81933

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/patterns.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,21 +59,24 @@ impl Rewrite for Pat {
5959
None
6060
},
6161
PatKind::Range(ref lhs, ref rhs, ref end_kind) => match *end_kind {
62-
RangeEnd::Included => rewrite_pair(
62+
RangeEnd::Excluded => rewrite_pair(
6363
&**lhs,
6464
&**rhs,
6565
"",
66-
"...",
66+
"..",
6767
"",
6868
context,
6969
shape,
7070
SeparatorPlace::Front,
7171
),
72-
RangeEnd::Excluded => rewrite_pair(
72+
// FIXME: Change _ to RangeEnd::Included(RangeSyntax::DotDotDot)
73+
// and add RangeEnd::Included(RangeSyntax::DotDotEq)
74+
// once rust PR #44709 gets merged
75+
_ => rewrite_pair(
7376
&**lhs,
7477
&**rhs,
7578
"",
76-
"..",
79+
"...",
7780
"",
7881
context,
7982
shape,

0 commit comments

Comments
 (0)