mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-22 12:43:16 +00:00
fix: remove array_into_iter warnings
This commit is contained in:
parent
808a5c9ffd
commit
67dd1ac608
2 changed files with 2 additions and 2 deletions
|
@ -241,7 +241,7 @@ where
|
|||
};
|
||||
Row::StyledData(vec![s.name, s.location, s.status].into_iter(), style)
|
||||
});
|
||||
Table::new(header.into_iter(), rows)
|
||||
Table::new(header.iter(), rows)
|
||||
.block(Block::default().title("Servers").borders(Borders::ALL))
|
||||
.header_style(Style::default().fg(Color::Yellow))
|
||||
.widths(&[
|
||||
|
|
|
@ -68,7 +68,7 @@ fn main() -> Result<(), failure::Error> {
|
|||
.constraints([Constraint::Percentage(100)].as_ref())
|
||||
.margin(5)
|
||||
.split(f.size());
|
||||
Table::new(header.into_iter(), rows)
|
||||
Table::new(header.iter(), rows)
|
||||
.block(Block::default().borders(Borders::ALL).title("Table"))
|
||||
.widths(&[
|
||||
Constraint::Percentage(50),
|
||||
|
|
Loading…
Reference in a new issue