Skip to content

Commit

Permalink
Syn upgrade fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew committed Jul 21, 2024
1 parent 2268dae commit 82cf2dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sg_pat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ impl Formattable for &Pat {
&e.attrs,
|out: &mut MakeSegsState, base_indent: &Alignment| {
let (tok, tok_loc) = match e.limits {
syn::RangeLimits::HalfOpen(x) => (" ..", x.spans[0].start()),
syn::RangeLimits::Closed(x) => (" ..=", x.spans[0].start()),
syn::RangeLimits::HalfOpen(x) => ("..", x.spans[0].start()),
syn::RangeLimits::Closed(x) => ("..=", x.spans[0].start()),
};
match (&e.start, &e.end) {
(None, None) => new_sg_lit(out, Some((base_indent, tok_loc)), tok),
Expand Down

0 comments on commit 82cf2dc

Please sign in to comment.