diff options
Diffstat (limited to 'src/widget/row.rs')
-rw-r--r-- | src/widget/row.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widget/row.rs b/src/widget/row.rs index a4d1be2c..7b7033a1 100644 --- a/src/widget/row.rs +++ b/src/widget/row.rs @@ -10,6 +10,7 @@ use crate::{ /// A [`Row`] will try to fill the horizontal space of its container. /// /// [`Row`]: struct.Row.html +#[derive(Default)] pub struct Row<'a, Message, Renderer> { style: Style, spacing: u16, @@ -141,7 +142,7 @@ impl<'a, Message, Renderer> Widget<Message, Renderer> let mut style = node.0.style(); style.margin.end = - stretch::style::Dimension::Points(self.spacing as f32); + stretch::style::Dimension::Points(f32::from(self.spacing)); node.0.set_style(style); node |