tidy: extdeps.rs: Clean up loop iteration to use "for"
Also eliminates a clippy lint.
This commit is contained in:
parent
fb317aaf9e
commit
896c3ce2f1
1 changed files with 1 additions and 2 deletions
|
|
@ -29,8 +29,7 @@ pub fn check(path: &Path, bad: &mut bool) {
|
|||
t!(t!(File::open(path)).read_to_string(&mut cargo_lock));
|
||||
|
||||
// process each line
|
||||
let mut lines = cargo_lock.lines();
|
||||
while let Some(line) = lines.next() {
|
||||
for line in cargo_lock.lines() {
|
||||
|
||||
// consider only source entries
|
||||
if ! line.starts_with("source = ") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue