refactor: use for loop

pull/24376/head
Edd Robinson 2020-12-07 12:26:26 +00:00
parent 34faf72968
commit 1d1414e9cf
1 changed files with 1 additions and 4 deletions

View File

@ -729,8 +729,7 @@ impl<'a> std::fmt::Display for &ReadGroupResult<'a> {
}
let expected_rows = self.group_keys.len();
let mut row = 0;
while row < expected_rows {
for row in 0..expected_rows {
if row > 0 {
writeln!(f)?;
}
@ -747,8 +746,6 @@ impl<'a> std::fmt::Display for &ReadGroupResult<'a> {
write!(f, ",")?;
}
}
row += 1;
}
writeln!(f)