diff --git a/examples/demo/ui.rs b/examples/demo/ui.rs index b33fe5fa..9d83e73c 100644 --- a/examples/demo/ui.rs +++ b/examples/demo/ui.rs @@ -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(&[ diff --git a/examples/table.rs b/examples/table.rs index 70e22502..77bfb45e 100644 --- a/examples/table.rs +++ b/examples/table.rs @@ -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),