summaryrefslogtreecommitdiffstats
path: root/graphics/src/layer/mesh.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--graphics/src/layer/mesh.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/graphics/src/layer/mesh.rs b/graphics/src/layer/mesh.rs
index a2232a1f..7056db9b 100644
--- a/graphics/src/layer/mesh.rs
+++ b/graphics/src/layer/mesh.rs
@@ -28,13 +28,9 @@ pub enum Style {
Gradient(Gradient),
}
-impl<'a> Into<Style> for Gradient {
- fn into(self) -> Style {
- match self {
- Gradient::Linear(linear) => {
- Style::Gradient(Gradient::Linear(linear))
- }
- }
+impl From<Gradient> for Style {
+ fn from(gradient: Gradient) -> Self {
+ Self::Gradient(gradient)
}
}