From 6fbba6f4eec1f2e7150f02e4c171f8ee60a46236 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Sat, 31 Aug 2019 06:20:56 +0200 Subject: Make `clippy` happy --- src/widget/row.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/widget/row.rs') 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 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 -- cgit