diff --git a/src/widgets/table/cell.rs b/src/widgets/table/cell.rs index f51a82f4..abeecb13 100644 --- a/src/widgets/table/cell.rs +++ b/src/widgets/table/cell.rs @@ -134,7 +134,7 @@ impl<'a> Cell<'a> { impl Cell<'_> { pub(crate) fn render(&self, area: Rect, buf: &mut Buffer) { buf.set_style(area, self.style); - self.content.clone().render(area, buf); + self.content.render_ref(area, buf); } } diff --git a/src/widgets/table/table.rs b/src/widgets/table/table.rs index 2c046784..86504049 100644 --- a/src/widgets/table/table.rs +++ b/src/widgets/table/table.rs @@ -722,7 +722,7 @@ impl Table<'_> { ..row_area }; buf.set_style(selection_area, row.style); - highlight_symbol.clone().render(selection_area, buf); + highlight_symbol.render_ref(selection_area, buf); }; for ((x, width), cell) in columns_widths.iter().zip(row.cells.iter()) { cell.render(