mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-16 02:15:01 +01:00
clippy cleanup
This commit is contained in:
parent
8593ddf18d
commit
7cba55578a
4 changed files with 23 additions and 23 deletions
|
|
@ -73,8 +73,8 @@ where
|
|||
E: CompilerError + Debug,
|
||||
{
|
||||
let mut chars = 0;
|
||||
let mut lines = source.split_inclusive('\n').enumerate();
|
||||
while let Some((idx, line)) = lines.next() {
|
||||
let lines = source.split_inclusive('\n').enumerate();
|
||||
for (idx, line) in lines {
|
||||
if chars + line.len() + 1 > error.span().start {
|
||||
let offset_on_line = error.span().start - chars;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue