summaryrefslogtreecommitdiffstats
path: root/graphics/src/gradient/linear.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 04:35:16 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-11-03 04:35:16 +0100
commitb95745340441835bd25b5cadc2342254631f8c05 (patch)
tree38f103e59a9decdc83ac5c7514fe89006bf0c7dd /graphics/src/gradient/linear.rs
parent20a0577034b40a6bbabee9bbbfc085f3fd5016c0 (diff)
downloadiced-b95745340441835bd25b5cadc2342254631f8c05.tar.gz
iced-b95745340441835bd25b5cadc2342254631f8c05.tar.bz2
iced-b95745340441835bd25b5cadc2342254631f8c05.zip
Run `cargo fmt`
Diffstat (limited to 'graphics/src/gradient/linear.rs')
-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 });
}