fix: apply some clippy lints and rename the liveview methods to not intersect

This commit is contained in:
Jonathan Kelley committed 2022-06-20 02:24:39 -04:00
1 parent c3e573b7cb
commit 8be66bd34d
14 files changed
+58 -76

No files matched your search

+2 -2
View File
@@ -80,11 +80,11 @@ fn Grid(cx: Scope<GridProps>) -> Element {
counts.with_mut(|c| {
let i = *count.current();
c[i] += 1;
c[i] = c[i] % 360;
c[i] %= 360;
});
count.with_mut(|i| {
*i += 1;
*i = *i % (size * size);
*i %= size * size;
});
}