tidy: extdeps.rs: Clean up loop iteration to use "for"

Also eliminates a clippy lint.
This commit is contained in:
Josh Triplett 2018-09-01 16:45:14 -07:00
parent fb317aaf9e
commit 896c3ce2f1

View file

@ -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 = ") {