Make clippy happy
This commit is contained in:
parent
1cd96d0d61
commit
6fbba6f4ee
8 changed files with 31 additions and 28 deletions
|
|
@ -10,6 +10,7 @@ use crate::{
|
|||
/// A [`Column`] will try to fill the horizontal space of its container.
|
||||
///
|
||||
/// [`Column`]: struct.Column.html
|
||||
#[derive(Default)]
|
||||
pub struct Column<'a, Message, Renderer> {
|
||||
style: Style,
|
||||
spacing: u16,
|
||||
|
|
@ -144,7 +145,7 @@ impl<'a, Message, Renderer> Widget<Message, Renderer>
|
|||
|
||||
let mut style = node.0.style();
|
||||
style.margin.bottom =
|
||||
stretch::style::Dimension::Points(self.spacing as f32);
|
||||
stretch::style::Dimension::Points(f32::from(self.spacing));
|
||||
|
||||
node.0.set_style(style);
|
||||
node
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue