diff options
Diffstat (limited to 'src/syntax/reparser.rs')
| -rw-r--r-- | src/syntax/reparser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax/reparser.rs b/src/syntax/reparser.rs index 75a5cc27..18960941 100644 --- a/src/syntax/reparser.rs +++ b/src/syntax/reparser.rs @@ -72,7 +72,7 @@ fn try_reparse( return node .replace_children(i..i + 1, vec![newborn]) .is_ok() - .then(|| new_range); + .then_some(new_range); } } } @@ -157,7 +157,7 @@ fn try_reparse( return node .replace_children(start..end, newborns) .is_ok() - .then(|| new_range); + .then_some(new_range); } } } |
