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/source.rs | |
| parent | dfbd3503d9a03215238ade30726651b09d6fab2d (diff) | |
Fix basic lints (cargo clippy) (#383)
Diffstat (limited to 'src/syntax/source.rs')
| -rw-r--r-- | src/syntax/source.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/syntax/source.rs b/src/syntax/source.rs index e8553b1e..233fb367 100644 --- a/src/syntax/source.rs +++ b/src/syntax/source.rs @@ -212,7 +212,7 @@ impl Source { k += c.len_utf16(); } - (k == utf16_idx).then(|| self.text.len()) + (k == utf16_idx).then_some(self.text.len()) } /// Return the byte position at which the given line starts. |
