diff options
author | 2023-09-19 01:52:25 -0400 | |
---|---|---|
committer | 2023-09-19 01:52:25 -0400 | |
commit | efd0ff6ded4e647e5fad0964555dbed541a075d7 (patch) | |
tree | c12b4603f1b0803947afbef98dcfb14527f5ddce /tiny_skia | |
parent | 4613eb26cba3ded83f25ebdefd01c983c79a9d59 (diff) | |
download | iced-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 'tiny_skia')
-rw-r--r-- | tiny_skia/src/geometry.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tiny_skia/src/geometry.rs b/tiny_skia/src/geometry.rs index 047bc0ff..1d573f6a 100644 --- a/tiny_skia/src/geometry.rs +++ b/tiny_skia/src/geometry.rs @@ -182,7 +182,7 @@ fn convert_path(path: &Path) -> Option<tiny_skia::Path> { let mut builder = tiny_skia::PathBuilder::new(); let mut last_point = Default::default(); - for event in path.raw().iter() { + for event in path.raw() { match event { lyon_path::Event::Begin { at } => { builder.move_to(at.x, at.y); |