1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

egui_extras: use slice instead of vec ref

This commit is contained in:
Wayne Warren
2022-04-03 20:52:41 -06:00
parent 2d6ca4265f
commit 84e0700459

View File

@@ -361,7 +361,7 @@ impl<'a> TableBody<'a> {
/// This is primarily meant for use with [`TableBody::heterogeneous_rows`] in cases where row
/// heights are expected to according to the width of one or more cells -- for example, if text
/// is wrapped rather than clippped within the cell.
pub fn widths(&self) -> &Vec<f32> {
pub fn widths(&self) -> &[f32] {
&self.widths
}