summaryrefslogtreecommitdiffstats
path: root/core/src/gradient.rs
diff options
context:
space:
mode:
authorLibravatar Yuri Astrakhan <YuriAstrakhan@gmail.com>2023-09-19 01:52:25 -0400
committerLibravatar Yuri Astrakhan <YuriAstrakhan@gmail.com>2023-09-19 01:52:25 -0400
commitefd0ff6ded4e647e5fad0964555dbed541a075d7 (patch)
treec12b4603f1b0803947afbef98dcfb14527f5ddce /core/src/gradient.rs
parent4613eb26cba3ded83f25ebdefd01c983c79a9d59 (diff)
downloadiced-efd0ff6ded4e647e5fad0964555dbed541a075d7.tar.gz
iced-efd0ff6ded4e647e5fad0964555dbed541a075d7.tar.bz2
iced-efd0ff6ded4e647e5fad0964555dbed541a075d7.zip
Chore: Apply some minor clippy fixes
* Use `.elapsed()` for duration * Use direct iteration without calling `.iter()` and the like * order fields in the `Text` struct creation as declared
Diffstat (limited to 'core/src/gradient.rs')
-rw-r--r--core/src/gradient.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/gradient.rs b/core/src/gradient.rs
index 4a0d5ea0..6a5533f8 100644
--- a/core/src/gradient.rs
+++ b/core/src/gradient.rs
@@ -94,7 +94,7 @@ impl Linear {
mut self,
stops: impl IntoIterator<Item = ColorStop>,
) -> Self {
- for stop in stops.into_iter() {
+ for stop in stops {
self = self.add_stop(stop.offset, stop.color)
}