From 92503ea9e157e665e49ea26db3ed68ab11370b52 Mon Sep 17 00:00:00 2001 From: Emil Ernerfeldt Date: Sun, 5 Sep 2021 10:11:52 +0200 Subject: [PATCH] clippy fix --- epaint/src/shape.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) } }