Skip to content

Commit

Permalink
fix 'iter_kv_map' clippy lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-beedie committed Dec 30, 2022
1 parent 307dc1d commit b735bf8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/arrangement/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub fn arrange_content(table: &Table) -> Vec<ColumnDisplayInfo> {
table_width
} else {
disabled::arrange(table, &mut infos, visible_columns, &max_content_widths);
return infos.into_iter().map(|(_, info)| info).collect();
return infos.into_values().collect();
};

match &table.arrangement {
Expand All @@ -54,7 +54,7 @@ pub fn arrange_content(table: &Table) -> Vec<ColumnDisplayInfo> {
}
}

infos.into_iter().map(|(_, info)| info).collect()
infos.into_values().collect()
}

#[cfg(test)]
Expand Down

0 comments on commit b735bf8

Please sign in to comment.