mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-03 07:55:13 +00:00
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:
parent
42226abc9c
commit
6173495cb6
|
@ -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)| {
|
||||
|
|
Loading…
Reference in a new issue