From b95745340441835bd25b5cadc2342254631f8c05 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Thu, 3 Nov 2022 04:35:16 +0100 Subject: Run `cargo fmt` --- graphics/src/gradient/linear.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'graphics/src/gradient/linear.rs') 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, - error: Option + error: Option, } 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 }); } -- cgit