diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-01-20 14:14:13 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-01-20 14:21:59 +0100 |
| commit | b73b4f33bcf0e4ff2cfa8438433205cd3a323e43 (patch) | |
| tree | b59ee2c6f46558b7e6a0b2b50e0f7e93afeb3ace /src/syntax/source.rs | |
| parent | dd331f007cb9c9968605f8d3eaef8fb498c21322 (diff) | |
Fix a few clippy lints
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 472e8c6c..63509dc8 100644 --- a/src/syntax/source.rs +++ b/src/syntax/source.rs @@ -291,7 +291,7 @@ struct Line { /// Create a line vector. fn lines(text: &str) -> Vec<Line> { std::iter::once(Line { byte_idx: 0, utf16_idx: 0 }) - .chain(lines_from(0, 0, &text)) + .chain(lines_from(0, 0, text)) .collect() } |
