Fix clippy lints for all crates and features
... and check those in CI as well!
This commit is contained in:
parent
d53cc5498b
commit
2065a40f64
55 changed files with 237 additions and 232 deletions
|
|
@ -17,6 +17,7 @@ mod rainbow {
|
|||
layout, Element, Layout, Length, Point, Rectangle, Size, Vector, Widget,
|
||||
};
|
||||
|
||||
#[derive(Default)]
|
||||
pub struct Rainbow;
|
||||
|
||||
impl Rainbow {
|
||||
|
|
@ -148,12 +149,12 @@ mod rainbow {
|
|||
}
|
||||
}
|
||||
|
||||
impl<'a, Message, B, T> Into<Element<'a, Message, Renderer<B, T>>> for Rainbow
|
||||
impl<'a, Message, B, T> From<Rainbow> for Element<'a, Message, Renderer<B, T>>
|
||||
where
|
||||
B: Backend,
|
||||
{
|
||||
fn into(self) -> Element<'a, Message, Renderer<B, T>> {
|
||||
Element::new(self)
|
||||
fn from(rainbow: Rainbow) -> Self {
|
||||
Self::new(rainbow)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue