Fix compile error from breaking changes in libsyntax

This commit is contained in:
topecongiro 2018-06-30 15:53:28 +09:00
parent eb1819d71e
commit bc16d8864a

View File

@ -99,7 +99,7 @@ impl Rewrite for Pat {
}
}
PatKind::Range(ref lhs, ref rhs, ref end_kind) => {
let infix = match *end_kind {
let infix = match end_kind.node {
RangeEnd::Included(RangeSyntax::DotDotDot) => "...",
RangeEnd::Included(RangeSyntax::DotDotEq) => "..=",
RangeEnd::Excluded => "..",