mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 00:24:34 +00:00
clippy
This commit is contained in:
parent
f5f98b2400
commit
fd5ab353db
5 changed files with 10 additions and 10 deletions
|
@ -617,13 +617,13 @@ fn what_is_next<'a>(source_lines: &'a [&'a str], row: Row, col: Col) -> BadIdent
|
|||
}
|
||||
}
|
||||
|
||||
fn till_whitespace<I>(mut it: I) -> usize
|
||||
fn till_whitespace<I>(it: I) -> usize
|
||||
where
|
||||
I: Iterator<Item = char>,
|
||||
{
|
||||
let mut chomped = 0;
|
||||
|
||||
while let Some(c) = it.next() {
|
||||
for c in it {
|
||||
if c.is_ascii_whitespace() || c == '#' {
|
||||
break;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue