tidy: cargo.rs: Clean up loop to use "for" instead of "while let"
Eliminates a clippy warning. Also drop the unnecessary `.peekable()`.
This commit is contained in:
parent
2893a2127d
commit
fb317aaf9e
1 changed files with 1 additions and 2 deletions
|
@ -65,8 +65,7 @@ fn verify(tomlfile: &Path, libfile: &Path, bad: &mut bool) {
|
|||
Some(i) => &toml[i+1..],
|
||||
None => return,
|
||||
};
|
||||
let mut lines = deps.lines().peekable();
|
||||
while let Some(line) = lines.next() {
|
||||
for line in deps.lines() {
|
||||
if line.starts_with('[') {
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue