summaryrefslogtreecommitdiffstats
path: root/graphics/src/gradient
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src/gradient')
-rw-r--r--graphics/src/gradient/linear.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/src/gradient/linear.rs b/graphics/src/gradient/linear.rs
index 31dcbe00..aaa9e234 100644
--- a/graphics/src/gradient/linear.rs
+++ b/graphics/src/gradient/linear.rs
@@ -103,7 +103,7 @@ pub struct Builder {
start: Point,
end: Point,
stops: Vec<ColorStop>,
- error: Option<BuilderError>
+ error: Option<BuilderError>,
}
impl Builder {
@@ -126,7 +126,7 @@ impl Builder {
start,
end,
stops: vec![],
- error: None
+ error: None,
}
}
@@ -148,7 +148,7 @@ impl Builder {
}) {
Ok(_) => {
self.error = Some(BuilderError::DuplicateOffset(offset))
- },
+ }
Err(index) => {
self.stops.insert(index, ColorStop { offset, color });
}