Fix lints by clippy

This commit is contained in:
Héctor Ramón Jiménez 2022-11-03 04:53:27 +01:00
parent edce457365
commit 7e22e2d452
No known key found for this signature in database
GPG key ID: 140CC052C94F138E
9 changed files with 20 additions and 28 deletions

View file

@ -42,10 +42,10 @@ impl<'a> From<Color> for Fill<'a> {
}
}
impl<'a> Into<Fill<'a>> for &'a Gradient {
fn into(self) -> Fill<'a> {
impl<'a> From<&'a Gradient> for Fill<'a> {
fn from(gradient: &'a Gradient) -> Self {
Fill {
style: Style::Gradient(self),
style: Style::Gradient(gradient),
..Default::default()
}
}