diff options
Diffstat (limited to 'graphics/src/gradient/linear.rs')
-rw-r--r-- | graphics/src/gradient/linear.rs | 6 |
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 }); } |