diff options
author | 2022-07-09 18:42:41 +0200 | |
---|---|---|
committer | 2022-07-09 18:43:05 +0200 | |
commit | 2065a40f642589134142a740ff4198deaa4c378b (patch) | |
tree | 00477d6d7cb571332062535557151d5b031d8925 /glow/src/quad/compatibility.rs | |
parent | d53cc5498b92fb6b573867f5ccb5f8ac93f6be79 (diff) | |
download | iced-2065a40f642589134142a740ff4198deaa4c378b.tar.gz iced-2065a40f642589134142a740ff4198deaa4c378b.tar.bz2 iced-2065a40f642589134142a740ff4198deaa4c378b.zip |
Fix `clippy` lints for all crates and features
... and check those in CI as well!
Diffstat (limited to '')
-rw-r--r-- | glow/src/quad/compatibility.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/glow/src/quad/compatibility.rs b/glow/src/quad/compatibility.rs index 7224e206..eb3fb7e0 100644 --- a/glow/src/quad/compatibility.rs +++ b/glow/src/quad/compatibility.rs @@ -116,14 +116,7 @@ impl Pipeline { // TODO: Remove this allocation (or allocate only when needed) let indices: Vec<i32> = (0..instances.len().min(MAX_QUADS) as i32) .flat_map(|i| { - [ - 0 + i * 4, - 1 + i * 4, - 2 + i * 4, - 2 + i * 4, - 1 + i * 4, - 3 + i * 4, - ] + [i * 4, 1 + i * 4, 2 + i * 4, 2 + i * 4, 1 + i * 4, 3 + i * 4] }) .cycle() .take(instances.len() * 6) |