diff --git a/epaint/src/shape.rs b/epaint/src/shape.rs index 83c795d7..b20ac7bd 100644 --- a/epaint/src/shape.rs +++ b/epaint/src/shape.rs @@ -208,10 +208,10 @@ impl TextShape { } } -impl Into for TextShape { +impl From for Shape { #[inline(always)] - fn into(self) -> Shape { - Shape::Text(self) + fn from(text_shape: TextShape) -> Self { + Self::Text(text_shape) } }