clippy fix

This commit is contained in:
Emil Ernerfeldt 2021-09-05 10:11:52 +02:00
parent d9f3596475
commit 92503ea9e1

View file

@ -208,10 +208,10 @@ impl TextShape {
}
}
impl Into<Shape> for TextShape {
impl From<TextShape> for Shape {
#[inline(always)]
fn into(self) -> Shape {
Shape::Text(self)
fn from(text_shape: TextShape) -> Self {
Self::Text(text_shape)
}
}