diff options
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. |
