diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-03-28 09:38:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-28 09:38:01 +0200 |
| commit | 213f31c5d71b3a5676ec8cce58204b1ac7f2cdea (patch) | |
| tree | bb0730bbc768f80eb3995b3a55d12a0f62ab3ee8 /src/syntax/reparser.rs | |
| parent | dfbd3503d9a03215238ade30726651b09d6fab2d (diff) | |
Fix basic lints (cargo clippy) (#383)
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); } } } |
