summaryrefslogtreecommitdiffstats
path: root/graphics/src/layer/mesh.rs
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/layer/mesh.rs')
-rw-r--r--graphics/src/layer/mesh.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/graphics/src/layer/mesh.rs b/graphics/src/layer/mesh.rs
index 0946317e..a2232a1f 100644
--- a/graphics/src/layer/mesh.rs
+++ b/graphics/src/layer/mesh.rs
@@ -1,7 +1,7 @@
//! A collection of triangle primitives.
-use crate::{Color, Point, Rectangle, triangle};
use crate::gradient::Gradient;
+use crate::{triangle, Color, Point, Rectangle};
/// A mesh of triangles.
#[derive(Debug, Clone, Copy)]
@@ -19,16 +19,16 @@ pub struct Mesh<'a> {
pub style: &'a Style,
}
-#[derive(Debug, Clone)]
+#[derive(Debug, Clone, PartialEq)]
/// Supported shaders for primitives.
pub enum Style {
/// Fill a primitive with a solid color.
Solid(Color),
/// Fill a primitive with an interpolated color.
- Gradient(Gradient)
+ Gradient(Gradient),
}
-impl <'a> Into<Style> for Gradient {
+impl<'a> Into<Style> for Gradient {
fn into(self) -> Style {
match self {
Gradient::Linear(linear) => {