chore: Another round of style lints fixes (#17519)
Closes #ISSUE Release Notes: - N/A
This commit is contained in:
parent
cfd43572c1
commit
095a08d9c8
33 changed files with 67 additions and 82 deletions
|
@ -1889,16 +1889,15 @@ mod tests {
|
|||
cells
|
||||
}
|
||||
|
||||
fn convert_cells_to_content(size: TerminalSize, cells: &Vec<Vec<char>>) -> TerminalContent {
|
||||
fn convert_cells_to_content(size: TerminalSize, cells: &[Vec<char>]) -> TerminalContent {
|
||||
let mut ic = Vec::new();
|
||||
|
||||
for row in 0..cells.len() {
|
||||
for col in 0..cells[row].len() {
|
||||
let cell_char = cells[row][col];
|
||||
for (index, row) in cells.iter().enumerate() {
|
||||
for (cell_index, cell_char) in row.iter().enumerate() {
|
||||
ic.push(IndexedCell {
|
||||
point: AlacPoint::new(Line(row as i32), Column(col)),
|
||||
point: AlacPoint::new(Line(index as i32), Column(cell_index)),
|
||||
cell: Cell {
|
||||
c: cell_char,
|
||||
c: *cell_char,
|
||||
..Default::default()
|
||||
},
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue