mirror of
https://github.com/storytold/effectcraft.git
synced 2026-11-20 09:05:51 +00:00
psd: align vector fixtures with fixed-size chunk lint
This commit is contained in:
1 parent
c149bb513f
commit
82cf1b5c5e
3 files changed
+3
-3
No files matched your search
@@ -16,7 +16,7 @@ fn length(selector: u16, count: u16) -> Vec<u8> {
|
||||
fn knot(selector: u16) -> Vec<u8> {
|
||||
let mut data = [0; 24];
|
||||
// Stored y then x, including negative and outside-document coordinates.
|
||||
for (chunk, value) in data.chunks_exact_mut(4).zip([-(1i32 << 23), 1 << 22, 1 << 24, -(1 << 24), 1 << 23, 1 << 25]) {
|
||||
for (chunk, value) in data.as_chunks_mut::<4>().0.iter_mut().zip([-(1i32 << 23), 1 << 22, 1 << 24, -(1 << 24), 1 << 23, 1 << 25]) {
|
||||
chunk.copy_from_slice(&value.to_be_bytes());
|
||||
}
|
||||
record(selector, data)
|
||||
|
||||
Reference in new issue
Block a user