use iter instead of into_iter

Reasons:
- This is functionally similar to into_iter since it is reference.
- It does not consume the list.

Signed-off-by: Perma Alesheikh <me@prma.dev>
This commit is contained in:
Perma Alesheikh 2024-01-08 21:33:25 +03:30 committed by Clément DOUIN
parent 42226abc9c
commit 6173495cb6
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

View file

@ -183,7 +183,7 @@ where
table[0].0.iter().map(|cell| cell.unicode_width()).collect();
table.extend(
items
.into_iter()
.iter()
.map(|item| {
let row = item.row();
row.0.iter().enumerate().for_each(|(i, cell)| {