Skip to content

Commit 896c3ce

Browse files
committed
tidy: extdeps.rs: Clean up loop iteration to use "for"
Also eliminates a clippy lint.
1 parent fb317aa commit 896c3ce

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/tools/tidy/src/extdeps.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,7 @@ pub fn check(path: &Path, bad: &mut bool) {
2929
t!(t!(File::open(path)).read_to_string(&mut cargo_lock));
3030

3131
// process each line
32-
let mut lines = cargo_lock.lines();
33-
while let Some(line) = lines.next() {
32+
for line in cargo_lock.lines() {
3433

3534
// consider only source entries
3635
if ! line.starts_with("source = ") {

0 commit comments

Comments
 (0)