summaryrefslogtreecommitdiffstats
path: root/core/src/gradient.rs
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/gradient.rs')
-rw-r--r--core/src/gradient.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/gradient.rs b/core/src/gradient.rs
index 4a0d5ea0..4711b044 100644
--- a/core/src/gradient.rs
+++ b/core/src/gradient.rs
@@ -94,8 +94,8 @@ impl Linear {
mut self,
stops: impl IntoIterator<Item = ColorStop>,
) -> Self {
- for stop in stops.into_iter() {
- self = self.add_stop(stop.offset, stop.color)
+ for stop in stops {
+ self = self.add_stop(stop.offset, stop.color);
}
self