1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

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)
}
}