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
This commit is contained in:
Yuri Astrakhan 2023-09-19 01:52:25 -04:00
parent 4613eb26cb
commit efd0ff6ded
7 changed files with 13 additions and 19 deletions

View file

@ -87,7 +87,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)
}