We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8d3a22 + 2f81933 commit 22eb524Copy full SHA for 22eb524
src/patterns.rs
@@ -59,21 +59,24 @@ impl Rewrite for Pat {
59
None
60
},
61
PatKind::Range(ref lhs, ref rhs, ref end_kind) => match *end_kind {
62
- RangeEnd::Included => rewrite_pair(
+ RangeEnd::Excluded => rewrite_pair(
63
&**lhs,
64
&**rhs,
65
"",
66
- "...",
+ "..",
67
68
context,
69
shape,
70
SeparatorPlace::Front,
71
),
72
- RangeEnd::Excluded => rewrite_pair(
+ // FIXME: Change _ to RangeEnd::Included(RangeSyntax::DotDotDot)
73
+ // and add RangeEnd::Included(RangeSyntax::DotDotEq)
74
+ // once rust PR #44709 gets merged
75
+ _ => rewrite_pair(
76
77
78
- "..",
79
+ "...",
80
81
82
0 commit comments