egui_extras: use slice instead of vec ref
This commit is contained in:
parent
2d6ca4265f
commit
84e0700459
1 changed files with 1 additions and 1 deletions
|
@ -361,7 +361,7 @@ impl<'a> TableBody<'a> {
|
||||||
/// This is primarily meant for use with [`TableBody::heterogeneous_rows`] in cases where row
|
/// 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
|
/// 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.
|
/// is wrapped rather than clippped within the cell.
|
||||||
pub fn widths(&self) -> &Vec<f32> {
|
pub fn widths(&self) -> &[f32] {
|
||||||
&self.widths
|
&self.widths
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue